Skip to content

Commit b503fe6

Browse files
committed
Making PR CI sane without duplicate runners.
1 parent 0a46ca8 commit b503fe6

File tree

1 file changed

+10
-67
lines changed

1 file changed

+10
-67
lines changed

.github/workflows/casper-node-launcher-pr.yml

Lines changed: 10 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -20,76 +20,19 @@ jobs:
2020
profile: minimal
2121
toolchain: stable
2222
override: true
23+
- run: rustup component add rustfmt clippy
2324
- uses: actions-rs/cargo@v1
2425
with:
25-
command: test
26+
command: install cargo-audit
2627

27-
fmt:
28-
name: Rustfmt
29-
strategy:
30-
matrix:
31-
include:
32-
- os: ubuntu-20.04
33-
code_name: focal
34-
35-
runs-on: ${{ matrix.os }}
36-
37-
steps:
38-
- uses: actions/checkout@v2
39-
- uses: actions-rs/toolchain@v1
40-
with:
41-
profile: minimal
42-
toolchain: stable
43-
override: true
44-
- run: rustup component add rustfmt
45-
- uses: actions-rs/cargo@v1
46-
with:
47-
command: fmt
48-
args: -- --check
28+
- name: fmt
29+
run: cargo fmt -- --check
4930

50-
clippy:
51-
name: Clippy
52-
strategy:
53-
matrix:
54-
include:
55-
- os: ubuntu-20.04
56-
code_name: focal
57-
58-
runs-on: ${{ matrix.os }}
31+
- name: clippy
32+
run: cargo clippy -- -D warnings
5933

60-
steps:
61-
- uses: actions/checkout@v2
62-
- uses: actions-rs/toolchain@v1
63-
with:
64-
profile: minimal
65-
toolchain: stable
66-
override: true
67-
- run: rustup component add clippy
68-
- uses: actions-rs/cargo@v1
69-
with:
70-
command: clippy
71-
args: -- -D warnings
72-
73-
audit:
74-
name: Audit
75-
strategy:
76-
matrix:
77-
include:
78-
- os: ubuntu-20.04
79-
code_name: focal
80-
81-
runs-on: ${{ matrix.os }}
82-
83-
steps:
84-
- uses: actions/checkout@v2
85-
- uses: actions-rs/toolchain@v1
86-
with:
87-
profile: minimal
88-
toolchain: stable
89-
override: true
90-
- run: cargo install cargo-audit
91-
- uses: actions-rs/cargo@v1
92-
with:
93-
command: audit
94-
args: --deny warnings --ignore RUSTSEC-2024-0375 --ignore RUSTSEC-2021-0145
34+
- name: audit
35+
run: cargo audit --deny warnings --ignore RUSTSEC-2024-0375 --ignore RUSTSEC-2021-0145
9536

37+
- name: test
38+
run: cargo test

0 commit comments

Comments
 (0)