Skip to content

Commit a7fd1c1

Browse files
committed
fix: build pipeline
Signed-off-by: Anton Whalley <[email protected]>
1 parent aeb7f40 commit a7fd1c1

File tree

1 file changed

+21
-38
lines changed

1 file changed

+21
-38
lines changed

.github/workflows/validate.yaml

Lines changed: 21 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,29 @@ env:
1010

1111
jobs:
1212
test:
13-
name: Test
1413
runs-on: ubuntu-latest
1514
steps:
1615
- uses: actions/checkout@v2
17-
- uses: actions-rs/toolchain@v1
18-
with:
19-
profile: minimal
20-
toolchain: stable
21-
override: true
22-
- uses: actions-rs/cargo@v1
23-
with:
24-
command: test
25-
args: -- --test-threads=1
16+
- name: Update local toolchain
17+
run: |
18+
rustup update
19+
rustup component add clippy
2620
27-
fmt:
28-
name: Rustfmt
29-
runs-on: ubuntu-latest
30-
steps:
31-
- uses: actions/checkout@v2
32-
- uses: actions-rs/toolchain@v1
33-
with:
34-
toolchain: stable
35-
override: true
36-
components: rustfmt
37-
- uses: actions-rs/cargo@v1
38-
with:
39-
command: fmt
40-
args: --all -- --check
21+
- name: Toolchain info
22+
run: |
23+
cargo --version --verbose
24+
rustc --version
25+
cargo clippy --version
26+
27+
- name: Lint
28+
run: |
29+
cd core-dump-handler
30+
cargo fmt -- --check
31+
cargo clippy -- -D warnings
32+
33+
- name: Test
34+
run: |
35+
cd core-dump-handler
36+
cargo check
37+
cargo test --release --all
4138
42-
clippy:
43-
name: Clippy
44-
runs-on: ubuntu-latest
45-
steps:
46-
- uses: actions/checkout@v2
47-
- uses: actions-rs/toolchain@v1
48-
with:
49-
toolchain: stable
50-
override: true
51-
components: clippy
52-
- uses: actions-rs/clippy-check@v1
53-
with:
54-
token: ${{ secrets.GITHUB_TOKEN }}
55-
args: -- -D warnings

0 commit comments

Comments
 (0)