diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index cf75e4e..54eab73 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -11,18 +11,28 @@ on: - "*.md" jobs: - clippy-rustfmt: - name: clippy-rustfmt + clippy-lints-check: + name: clippy-lints-check runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - - name: "Cargo: clippy, fmt" + - name: "Cargo: clippy" run: | rustup toolchain install stable --profile minimal -c clippy - rustup toolchain install nightly --profile minimal -c rustfmt cargo +stable clippy -- -D warnings + + rustfmt-check: + name: rustfmt-check + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: "Cargo: fmt" + run: | + rustup toolchain install nightly --profile minimal -c rustfmt cargo +nightly fmt -- --check github-release: