Skip to content

Commit 1e4bd0f

Browse files
committed
Run tests and lint code on Linux CI
1 parent 3563130 commit 1e4bd0f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,28 @@ jobs:
2020
with:
2121
fetch-depth: 1
2222

23+
- name: Install toolchain
24+
uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: 1.70.0
27+
override: true
28+
components: rustfmt, clippy
29+
30+
- uses: Swatinem/rust-cache@v2
31+
with:
32+
key: linux
33+
34+
- name: Run unit tests
35+
run: cargo test --all
36+
37+
- name: Lint check
38+
run: cargo clippy --all -- -D warnings
39+
2340
- name: Formatting check
2441
run: cargo fmt --all -- --check
2542

2643
- uses: docker/setup-buildx-action@v2
27-
- name: Build and push
44+
- name: Build Docker image
2845
uses: docker/build-push-action@v4
2946
with:
3047
context: .

0 commit comments

Comments
 (0)