Skip to content

Commit

Permalink
Add test echo server to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
MOZGIII committed Feb 2, 2024
1 parent 6da28ce commit 247c9c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/actions/plan/plan.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,15 @@ const codeModes = {
cargoCommand: "test",
cargoArgs: "--workspace",
cargoCacheKey: "test",
needsEchoServer: true,
},
test_wasm: {
name: "test (wasm)",
cargoCommand: "test",
cargoArgs: "--workspace --target wasm32-unknown-unknown",
platformIndependent: true,
cargoCacheKey: "test-wasm",
needsEchoServer: true,
},
build: {
name: "build",
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ jobs:
cargo clippy --version
env
- name: Build and run the test echo server
run: |
cargo build --bin xwt-test-echo-server
cargo run --bin xwt-test-echo-server &
if: ${{ matrix.plan.mode.needsEchoServer }}

- name: Run cargo ${{ matrix.plan.mode.cargoCommand }}
uses: actions-rs/cargo@v1
with:
Expand Down

0 comments on commit 247c9c8

Please sign in to comment.