Fix Rust lint

This commit is contained in:
Gregory Schier
2024-06-09 06:43:53 -07:00
parent cb2f56d9a1
commit dae2873376
2 changed files with 6 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ jobs:
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: nightly # required for `cargo udeps` toolchain: stable
override: true override: true
- name: Set up cargo cache - name: Set up cargo cache
uses: actions/cache@v3 uses: actions/cache@v3

View File

@@ -39,13 +39,14 @@ jobs:
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
- name: Install dependencies - name: Install dependencies
run: npm ci run: npm ci
- name: Run lint - name: Lint and Test (JS)
run: | run: |
npm run lint npm run lint
cargo check --all
- name: Run tests
run: |
npm test npm test
- name: Lint and Test (Rust)
working-directory: src-tauri
run: |
cargo check --all
cargo test --all cargo test --all
- uses: tauri-apps/tauri-action@v0 - uses: tauri-apps/tauri-action@v0
env: env: