Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): reenable CI for noir_wasm #2636

Merged
merged 5 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/abi_wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ jobs:
path: ./result

- name: Query playwright version
working-directory: ./crates/noirc_abi_wasm
run: echo "PLAYWRIGHT_VERSION=$(yarn info @web/test-runner-playwright --json | jq .children.Version)" >> $GITHUB_ENV

- name: Cache playwright binaries
Expand Down
89 changes: 47 additions & 42 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,45 +119,50 @@ jobs:
path: ${{ env.UPLOAD_PATH }}
retention-days: 3

# test:
# needs: [build-wasm, build-nargo]
# name: Test noir_wasm
# runs-on: ubuntu-latest
# steps:
# - name: Checkout noir-lang/noir
# uses: actions/checkout@v4

# - name: Download wasm package artifact
# uses: actions/download-artifact@v3
# with:
# name: noir_wasm
# path: ./crates/wasm/result

# - name: Download nargo binary
# uses: actions/download-artifact@v3
# with:
# name: nargo
# path: ./nargo

# - name: Compile test program with Nargo CLI
# working-directory: ./crates/wasm/noir-script
# run: |
# nargo_binary=${{ github.workspace }}/nargo/nargo
# chmod +x $nargo_binary
# $nargo_binary compile

# - name: Install dependencies
# working-directory: ./crates/wasm
# run: yarn install

# - name: Install playwright deps
# working-directory: ./crates/wasm
# run: |
# npx playwright install
# npx playwright install-deps

# - name: Run tests
# working-directory: ./crates/wasm
# run: |
# yarn test:browser
# yarn test:node
test:
needs: [build-wasm, build-nargo]
name: Test noir_wasm
runs-on: ubuntu-latest
steps:
- name: Checkout noir-lang/noir
uses: actions/checkout@v4

- name: Download wasm package artifact
uses: actions/download-artifact@v3
with:
name: noir_wasm
path: ./crates/wasm/result

- name: Download nargo binary
uses: actions/download-artifact@v3
with:
name: nargo
path: ./nargo

- name: Compile test program with Nargo CLI
working-directory: ./crates/wasm/noir-script
run: |
nargo_binary=${{ github.workspace }}/nargo/nargo
chmod +x $nargo_binary
$nargo_binary compile

- name: Set up test environment
uses: ./.github/actions/setup
with:
working-directory: ./crates/wasm

- name: Install dependencies
working-directory: ./crates/wasm
run: yarn install

- name: Install playwright deps
working-directory: ./crates/wasm
run: |
npx playwright install
npx playwright install-deps

- name: Run tests
working-directory: ./crates/wasm
run: |
yarn test:browser
yarn test:node
1 change: 1 addition & 0 deletions crates/wasm/web-test-runner.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fileURLToPath } from 'url';
import { esbuildPlugin } from "@web/dev-server-esbuild";
import { playwrightLauncher } from "@web/test-runner-playwright";

Expand Down
Loading