mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2026-02-02 09:25:11 +01:00
ci(github-actions): better structure & shorter action names
This commit is contained in:
parent
451726a8fa
commit
4b52de20d3
2 changed files with 98 additions and 52 deletions
38
.github/workflows/essentials.yml
vendored
38
.github/workflows/essentials.yml
vendored
|
|
@ -9,7 +9,7 @@ on:
|
|||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
name: Quality checks & tests
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
|
|
@ -40,9 +40,12 @@ jobs:
|
|||
target/
|
||||
key: '${{ runner.os }}-cargo-${{ matrix.rust }}-hash-${{ hashFiles(''**/Cargo.lock'') }}'
|
||||
|
||||
- name: Lint
|
||||
- name: Quality - cargo fmt
|
||||
run: |
|
||||
cargo fmt --all -- --check
|
||||
|
||||
- name: Quality - cargo clippy
|
||||
run: |
|
||||
cargo clippy -- -D warnings
|
||||
|
||||
- name: Quality - convco check
|
||||
|
|
@ -61,22 +64,29 @@ jobs:
|
|||
mv cargo-deny ~/.cargo/bin/
|
||||
cargo deny check
|
||||
|
||||
- name: Install cargo check tools
|
||||
- name: Quality - cargo audit check
|
||||
run: |
|
||||
curl -sSfL https://github.com/rustsec/rustsec/releases/download/cargo-audit%2Fv0.17.3/cargo-audit-x86_64-unknown-linux-musl-v0.17.3.tgz | tar zx --no-anchored cargo-audit --strip-components=1
|
||||
chmod +x cargo-audit
|
||||
mv cargo-audit ~/.cargo/bin/
|
||||
rm -rf ~/.cargo/advisory-db/
|
||||
cargo audit --ignore RUSTSEC-2020-0071 # time-rs, but not used by chrono, see https://github.com/chronotope/chrono/issues/602
|
||||
|
||||
- name: Quality - cargo outdated
|
||||
timeout-minutes: 20
|
||||
if: ${{ matrix.rust == 'stable' }}
|
||||
run: |
|
||||
cargo install --locked cargo-outdated || true
|
||||
# cargo install --locked cargo-udeps || true # needs nightly
|
||||
cargo install --locked cargo-audit || true
|
||||
cargo install --locked cargo-pants || true
|
||||
|
||||
- name: Check
|
||||
if: ${{ matrix.rust == 'stable' }}
|
||||
run: |
|
||||
cargo outdated --exit-code 1
|
||||
# cargo udeps
|
||||
rm -rf ~/.cargo/advisory-db
|
||||
cargo audit --ignore RUSTSEC-2020-0071 # time-rs, but not used by chrono, see https://github.com/chronotope/chrono/issues/602
|
||||
cargo outdated --exit-code 1
|
||||
|
||||
# - name: Quality - cargo udeps (needs nightly)
|
||||
# run: |
|
||||
# cargo install --locked cargo-udeps || true
|
||||
# cargo udeps
|
||||
|
||||
- name: Quality - cargo pants
|
||||
run: |
|
||||
cargo install --locked cargo-pants || true
|
||||
cargo pants
|
||||
|
||||
- name: Build (dev)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue