Skip to content

Commit 6bb4ca8

Browse files
authored
Merge pull request #159 from IBM/workflow-fix
fix: build pipeline
2 parents aeb7f40 + 552b6fd commit 6bb4ca8

File tree

1 file changed

+19
-38
lines changed

1 file changed

+19
-38
lines changed

.github/workflows/validate.yaml

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,46 +10,27 @@ 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+
cargo fmt -- --check
30+
cargo clippy -- -D warnings
31+
32+
- name: Test
33+
run: |
34+
cargo check
35+
cargo test --all
4136
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)