Skip to content

[deps] Upgrade eslint to v9 and fix config #448

[deps] Upgrade eslint to v9 and fix config

[deps] Upgrade eslint to v9 and fix config #448

Workflow file for this run

name: Rust CI
on: push
defaults:
run:
shell: bash
working-directory: rs
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install libraries
run: sudo apt-get install libasound2-dev
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
rs/target/
key: ${{ runner.os }}-cargo-test-${{ hashFiles('**/Cargo.lock') }}
- name: Update rust toolchain
run: |
rustup update
rustup component add clippy
- name: 'Check format'
run: cargo fmt -- --check
- name: 'Run clippy linter'
run: cargo clippy --no-deps -- -Dwarnings
- name: 'Run tests'
run: cargo test