From b4a05bc940e9e7da1a8284d63fb5cc787f55aa69 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Sat, 13 May 2023 20:03:07 +0300 Subject: [PATCH] ci: fix clippy.yml --- .github/workflows/clippy.yml | 4 ++-- .github/workflows/rustfmt.yml | 26 +++++++++++--------------- 2 files changed, 13 insertions(+), 17 deletions(-) diff --git a/.github/workflows/clippy.yml b/.github/workflows/clippy.yml index c5e9d2e..51b9666 100644 --- a/.github/workflows/clippy.yml +++ b/.github/workflows/clippy.yml @@ -15,5 +15,5 @@ jobs: - run: rustup component add clippy - uses: actions-rs/clippy-check@v1 with: - token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features + token: ${{ secrets.GITHUB_TOKEN }} + args: --all-targets --all-features -- -D warnings diff --git a/.github/workflows/rustfmt.yml b/.github/workflows/rustfmt.yml index 7570f8d..3d43305 100644 --- a/.github/workflows/rustfmt.yml +++ b/.github/workflows/rustfmt.yml @@ -8,20 +8,16 @@ on: - "rolling" jobs: - format: - name: rustfmt + formatting: + name: cargo fmt runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - toolchain: nightly - components: rustfmt - override: true - - uses: LoliGothick/rustfmt-check@master - with: - token: ${{ secrets.GITHUB_TOKEN }} - flags: --all - options: --manifest-path=Cargo.toml - args: --config-path=rustfmt.toml - working-directory: my_crate + - uses: actions/checkout@v3 + # Ensure rustfmt is installed and setup problem matcher + - uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + components: rustfmt + - name: Rustfmt Check + uses: Syndelis/rustfmt-action@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }}