mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-05 02:55:31 +00:00
CI: tweak: separate clippy and rustfmt jobs
This commit is contained in:
parent
256fedbcc2
commit
48f83e75f7
18
.github/workflows/build-and-test.yml
vendored
18
.github/workflows/build-and-test.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user