mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-07 12:05:46 +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"
|
- "*.md"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
clippy-rustfmt:
|
clippy-lints-check:
|
||||||
name: clippy-rustfmt
|
name: clippy-lints-check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: "Cargo: clippy, fmt"
|
- name: "Cargo: clippy"
|
||||||
run: |
|
run: |
|
||||||
rustup toolchain install stable --profile minimal -c clippy
|
rustup toolchain install stable --profile minimal -c clippy
|
||||||
rustup toolchain install nightly --profile minimal -c rustfmt
|
|
||||||
cargo +stable clippy -- -D warnings
|
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
|
cargo +nightly fmt -- --check
|
||||||
|
|
||||||
github-release:
|
github-release:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user