Sync wasm-bindgen-cli version with Cargo.lock
#648
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: e2e-standalone-tests | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - '.github/workflows/e2e-standalone-tests.yml' | |
| - 'tslib/**.ts' | |
| - 'tslib/**.tsx' | |
| - 'tslib/**/package.json' | |
| - 'tslib/**/package-lock.json' | |
| - 'standalone_app/**.ts' | |
| - 'standalone_app/**.tsx' | |
| - 'standalone_app/package.json' | |
| - 'standalone_app/package-lock.json' | |
| - 'standalone_app/tsconfig.json' | |
| - 'standalone_app/vite.config.js' | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchains | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: wasm32-unknown-unknown | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: | | |
| uv sync --group test | |
| - name: Build rustlib for standalone_app | |
| working-directory: rustlib | |
| run: | | |
| WASM_BINDGEN_VERSION=$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "wasm-bindgen") | .version') | |
| cargo install wasm-bindgen-cli --version $WASM_BINDGEN_VERSION | |
| cargo install wasm-opt | |
| ./build.sh | |
| - name: Build tslib | |
| run: make tslib | |
| - name: Build standalone_app | |
| working-directory: standalone_app | |
| run: | | |
| npm install | |
| npx vite build --outDir dist | |
| - name: Install the required browsers | |
| run: uv run playwright install | |
| - name: Run e2e tests | |
| run: uv run pytest e2e_tests/test_standalone |