fix: correct stale rainlang-0.1.2 import breaking the build on main #359
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: wasm-browser-test | |
| on: [push] | |
| jobs: | |
| wasm-browser-test: | |
| runs-on: ubuntu-latest | |
| env: | |
| COMMIT_SHA: ${{ github.sha }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Free disk space | |
| uses: jlumbroso/free-disk-space@v1.3.1 | |
| with: | |
| # Keep chromium — wasm-pack test --headless --chrome needs it. | |
| large-packages: false | |
| - uses: nixbuild/nix-quick-install-action@v30 | |
| with: | |
| nix_conf: | | |
| keep-env-derivations = true | |
| keep-outputs = true | |
| - uses: cachix/cachix-action@v15 | |
| continue-on-error: true | |
| with: | |
| name: rainlanguage | |
| authToken: ${{ secrets.CACHIX_AUTH_TOKEN }} | |
| useDaemon: false | |
| - name: Restore and save Nix store | |
| uses: nix-community/cache-nix-action@v7 | |
| with: | |
| primary-key: nix-${{ runner.os }}-${{ hashFiles('**/*.nix', '**/flake.lock') }} | |
| restore-prefixes-first-match: nix-${{ runner.os }}- | |
| gc-max-store-size-linux: 8G | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| prefix-key: rust-${{ github.workflow }} | |
| - run: | | |
| nix develop .#wasm-shell -c bash -c ' | |
| cd crates/common | |
| wasm-pack test --headless --chrome --features browser-tests -- leadership::wasm_tests | |
| wasm-pack test --headless --chrome --features browser-tests -- scheduler::wasm::wasm_tests | |
| wasm-pack test --headless --chrome --features browser-tests -- status::wasm::wasm_tests | |
| wasm-pack test --headless --chrome --features browser-tests -- retry::wasm_tests | |
| wasm-pack test --headless --chrome --features browser-tests -- raindex_client::local_db::wasm_tests | |
| ' |