Skip to content

Commit

Permalink
Merge pull request #5768 from roc-lang/web-repl-macos-ci
Browse files Browse the repository at this point in the history
test wasm repl inside nix
  • Loading branch information
Anton-4 committed Aug 19, 2023
2 parents 885eff1 + 788c0fa commit a6aae71
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/nix_linux_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,9 @@ jobs:

- name: test the dev backend # these tests require an explicit feature flag
run: nix develop -c cargo test --locked --release --package test_gen --no-default-features --features gen-dev

- name: wasm repl tests
run: nix develop -c crates/repl_test/test_wasm.sh

- name: test building wasm repl
run: nix develop -c ./ci/www-repl.sh
13 changes: 10 additions & 3 deletions .github/workflows/nix_macos_apple_silicon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ jobs:
run: cd examples/platform-switching/rust-platform && nix develop -c cargo test --release --locked

- name: test launching the editor
run: cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs
run: nix develop -c cargo test --release --locked editor_launch_test::launch -- --ignored # `--ignored` to run this test that is ignored for "normal" runs

# we run the llvm wasm tests only on this machine because it is fast and wasm should be cross-target
- name: execute llvm wasm tests with --release
run: nix develop -c cargo test-gen-llvm-wasm --locked --release

- name: test website build script
run: REPL_DEBUG=1 bash www/build.sh
- name: set env var and test website build script
run: |
nix develop -c bash www/build.sh
- name: wasm repl tests
run: nix develop -c crates/repl_test/test_wasm.sh

- name: test building wasm repl
run: nix develop -c ./ci/www-repl.sh
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu_x86_64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ jobs:
#TODO verify-no-git-changes

- name: test website build script
run: REPL_DEBUG=1 bash www/build.sh
run: bash www/build.sh
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
Foundation
Metal
Security
curl # for wasm-bindgen-cli libcurl (see ./ci/www-repl.sh)
]);

# For debugging LLVM IR
Expand Down

0 comments on commit a6aae71

Please sign in to comment.