Update recommended VSCode plugins #1453
This file contains 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: 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 |