Skip to content

Commit 776035e

Browse files
committed
ci: run clippy on all platforms, test docs build
Also update to checkout@v2
1 parent 9685951 commit 776035e

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
name: build
22
on: [push]
33
jobs:
4-
check-fmt-clippy:
4+
rustfmt-check:
55
runs-on: ubuntu-latest
66
steps:
7+
- uses: actions/checkout@v2
78
- uses: hecrj/setup-rust-action@v1
89
with:
910
rust-version: stable
10-
components: "rustfmt,clippy"
11-
- uses: actions/checkout@v1
12-
- name: Check fmt and clippy
13-
run: cargo fmt -- --check && cargo clippy -- -Dwarnings
11+
components: rustfmt
12+
- name: Check rustfmt
13+
run: cargo fmt -- --check
1414
test:
1515
runs-on: ${{ matrix.os }}
1616
strategy:
1717
matrix:
1818
os: [ubuntu-latest, windows-latest, macOS-latest]
1919
rust: [stable, nightly]
20-
2120
steps:
21+
- uses: actions/checkout@v2
2222
- uses: hecrj/setup-rust-action@v1
2323
with:
2424
rust-version: ${{ matrix.rust }}
25-
- uses: actions/checkout@v1
25+
components: clippy
26+
- name: Check clippy
27+
run: cargo clippy -- -Dwarnings
28+
- name: Build
29+
run: cargo build --verbose
30+
- name: Build Docs
31+
run: cargo doc --verbose
2632
- name: Run tests
2733
run: cargo test --verbose

0 commit comments

Comments
 (0)