Skip to content

Commit 7b15a18

Browse files
committed
streamline and improve CI
switches clippy over to stable
1 parent 0d04c9c commit 7b15a18

File tree

3 files changed

+51
-71
lines changed

3 files changed

+51
-71
lines changed

.github/workflows/ci.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
on: [push, pull_request]
2+
3+
name: ci
4+
5+
jobs:
6+
test:
7+
name: clippy + tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions-rs/toolchain@v1
12+
with:
13+
profile: minimal
14+
toolchain: stable
15+
- name: cargo clippy
16+
uses: actions-rs/cargo@v1
17+
with:
18+
command: clippy
19+
args: --workspace --tests --examples --features=std -- -D warnings
20+
# don't forget the no_std example!
21+
- name: cargo clippy (example_no_std)
22+
uses: actions-rs/cargo@v1
23+
with:
24+
command: clippy
25+
args: --manifest-path example_no_std/Cargo.toml
26+
- name: cargo test
27+
uses: actions-rs/cargo@v1
28+
with:
29+
command: test
30+
args: --workspace --features=std
31+
rustfmt:
32+
name: rustfmt (nightly)
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
- uses: actions-rs/toolchain@v1
37+
with:
38+
profile: minimal
39+
toolchain: nightly
40+
components: rustfmt
41+
- name: cargo +nightly fmt
42+
uses: actions-rs/cargo@v1
43+
with:
44+
command: fmt
45+
args: --all -- --check
46+
# don't forget the no_std example!
47+
- name: cargo +nightly fmt (example_no_std)
48+
uses: actions-rs/cargo@v1
49+
with:
50+
command: fmt
51+
args: --manifest-path example_no_std/Cargo.toml

.github/workflows/lints.yml

-33
This file was deleted.

.github/workflows/stable-ci.yml

-38
This file was deleted.

0 commit comments

Comments
 (0)