mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 08:23:24 +01:00
Cancel old CI runs on commit (#12298)
# Description Adds a `concurrency` section to the CI workflow to cancel old CI jobs when a new commit is pushed to the same branch/PR.
This commit is contained in:
parent
8499f7b4f8
commit
f8c1e3ac61
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -12,6 +12,10 @@ env:
|
||||
# If changing these settings also change toolkit.nu
|
||||
CLIPPY_OPTIONS: "-D warnings -D clippy::unwrap_used"
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
fmt-clippy:
|
||||
strategy:
|
||||
@ -167,7 +171,7 @@ jobs:
|
||||
rustflags: ""
|
||||
|
||||
- name: Clippy
|
||||
run: cargo clippy --package nu_plugin_* ${{ matrix.flags }} -- $CLIPPY_OPTIONS
|
||||
run: cargo clippy --package nu_plugin_* -- $CLIPPY_OPTIONS
|
||||
|
||||
- name: Tests
|
||||
run: cargo test --profile ci --package nu_plugin_*
|
||||
|
Loading…
Reference in New Issue
Block a user