From a7fd1c10e7318c26131f6ba6066733892108339f Mon Sep 17 00:00:00 2001 From: Anton Whalley Date: Mon, 8 Apr 2024 23:23:09 +0100 Subject: [PATCH] fix: build pipeline Signed-off-by: Anton Whalley --- .github/workflows/validate.yaml | 59 ++++++++++++--------------------- 1 file changed, 21 insertions(+), 38 deletions(-) diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml index 31a3640..dac79e7 100644 --- a/.github/workflows/validate.yaml +++ b/.github/workflows/validate.yaml @@ -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