-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (37 loc) · 1.12 KB
/
run-test-suite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Run test suite
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings"
jobs:
run-tests:
name: Run test suite on Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Install dependencies
run: sudo apt update && sudo apt install libasound2-dev libudev-dev
- name: Ensure code is properly formatted
run: cargo fmt --all -- --check
- name: Ensure all lints pass
run: cargo clippy --workspace
- name: Build
run: cargo build --workspace
- name: Run tests
run: cargo test --workspace
run-tests-wasm:
name: Run checks on Linux (WASM)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
- name: Ensure all lints pass
run: cargo clippy --workspace --target wasm32-unknown-unknown
- name: Build
run: cargo build --workspace --target wasm32-unknown-unknown