Skip to content

Commit 6684d2f

Browse files
committed
chore(ci): introduce clippy checks
1 parent b029d2b commit 6684d2f

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

.github/workflows/rust.yml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,20 @@ jobs:
1515
steps:
1616
- name: Checkout the source code
1717
uses: actions/checkout@v5
18-
- name: Set nightly toolchain
19-
uses: actions-rs/toolchain@v1
20-
with:
21-
toolchain: stable
22-
- name: Environment
23-
run: |
24-
if [[ "$(uname)" == 'Darwin' ]]; then
25-
brew install sqlite3
26-
else
27-
sudo apt-get update -y
28-
sudo apt-get install -y libsqlite3-dev libdbus-1-dev
29-
fi
30-
- name: Build
31-
run: cargo build --release --all-features
18+
- name: Install Toolchain
19+
run: rustup update stable && rustup default stable
20+
- uses: actions/setup-sqlite@v1
3221
- name: Run tests
33-
run: cargo test --release --all-features
22+
run: cargo nextest run --release --all-features
23+
check:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout the source code
27+
uses: actions/checkout@v5
28+
- name: Install Toolchain
29+
run: rustup update stable && rustup default stable
30+
- uses: actions/setup-sqlite@v1
31+
- name: Run format check
32+
run: cargo fmt --check
33+
- name: Run clippy
34+
run: cargo clippy --all-features -- -D warnings

0 commit comments

Comments
 (0)