Skip to content

Commit

Permalink
fix: build pipeline
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Whalley <[email protected]>
  • Loading branch information
No9 committed Apr 8, 2024
1 parent aeb7f40 commit a7fd1c1
Showing 1 changed file with 21 additions and 38 deletions.
59 changes: 21 additions & 38 deletions .github/workflows/validate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,46 +10,29 @@ 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: |
cd core-dump-handler
cargo fmt -- --check
cargo clippy -- -D warnings
- name: Test
run: |
cd core-dump-handler
cargo check
cargo test --release --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 a7fd1c1

Please sign in to comment.