Skip to content

Commit

Permalink
Merge pull request #159 from IBM/workflow-fix
Browse files Browse the repository at this point in the history
fix: build pipeline
  • Loading branch information
No9 authored Apr 8, 2024
2 parents aeb7f40 + 552b6fd commit 6bb4ca8
Showing 1 changed file with 19 additions and 38 deletions.
57 changes: 19 additions & 38 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,27 @@ env:

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
args: -- --test-threads=1
- name: Update local toolchain
run: |
rustup update
rustup component add clippy
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
- name: Lint
run: |
cargo fmt -- --check
cargo clippy -- -D warnings
- name: Test
run: |
cargo check
cargo test --all
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: -- -D warnings

0 comments on commit 6bb4ca8

Please sign in to comment.