Skip to content

Commit abdaca5

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

File tree

3 files changed

+49
-71
lines changed

3 files changed

+49
-71
lines changed

.github/workflows/ci.yml

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