Skip to content

Commit 4e9a8a3

Browse files
PgBielBromeon
authored andcommitted
run web unit tests on ci
1 parent 0f8ad4b commit 4e9a8a3

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/minimal-ci.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,33 @@ jobs:
128128
run: cargo test $TEST_FEATURES
129129

130130

131+
unit-test-web:
132+
name: unit-test-web
133+
runs-on: ubuntu-22.04
134+
steps:
135+
- uses: actions/checkout@v4
136+
137+
- name: "Patch Cargo.toml to use nightly extension API"
138+
run: .github/other/patch-prebuilt.sh nightly
139+
140+
- name: "Install Rust"
141+
uses: ./.github/composite/rust
142+
with:
143+
rust: nightly
144+
145+
- name: "Install emscripten"
146+
run: |
147+
git clone https://github.com/emscripten-core/emsdk.git
148+
pushd emsdk
149+
./emsdk install 3.1.74
150+
./emsdk activate 3.1.74
151+
source ./emsdk.sh
152+
popd
153+
154+
- name: "Test (Wasm)"
155+
run: ./check.sh testweb
156+
157+
131158
# For complex matrix workflow, see https://stackoverflow.com/a/65434401
132159
godot-itest:
133160
name: godot-itest (${{ matrix.name }})

0 commit comments

Comments
 (0)