# Test WebAssembly build in cockle deployment name: Test WebAssembly on: workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: build: runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout uses: actions/checkout@v7 - name: Setup Python uses: actions/setup-python@v7 with: python-version: '3.14' - name: Install mamba uses: mamba-org/setup-micromamba@v3 with: environment-file: wasm/wasm-environment.yml cache-environment: true - name: Build shell: bash -l {0} working-directory: wasm run: | cmake . make build-recipe make build-test - name: Install playwright chromium shell: bash -l {0} working-directory: wasm/test run: | npx playwright install chromium - name: Upload artifact containing emscripten-forge package uses: actions/upload-pages-artifact@v5 with: path: ./wasm/recipe/em-forge-recipes/output/ - name: Run WebAssembly tests shell: bash -l {0} working-directory: wasm env: GIT2CPP_TEST_PRIVATE_TOKEN: ${{ secrets.GIT2CPP_TEST_PRIVATE_TOKEN }} run: | make test