Migrate from wasm-pack to custom WASM build process #640
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: Install wasm-bindgen and wasm-opt | |
| run: | | |
| cargo install wasm-bindgen-cli | |
| cargo install wasm-opt | |
| - 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 | |
| working-directory: rustlib | |
| run: ./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 |