mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 22:54:21 +00:00
ci: try only having cancel-in-progress for non-main branch (#864)
This commit is contained in:
parent
1adc032570
commit
d56b551e39
3 changed files with 14 additions and 10 deletions
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
|
@ -5,10 +5,14 @@
|
|||
# - https://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/ci.yml
|
||||
# - https://www.reillywood.com/blog/rust-faster-ci/
|
||||
#
|
||||
# It should do the following:
|
||||
# - cargo fmt on supported platforms
|
||||
# - cargo test on supported platforms, cargo check on unsupported
|
||||
# - cargo clippy after (apparently faster) on supported platforms
|
||||
# It should run the following:
|
||||
# Supported platforms:
|
||||
# - cargo fmt
|
||||
# - cargo test
|
||||
# - cargo clippy after (apparently faster to do so)
|
||||
#
|
||||
# Unsupported platforms:
|
||||
# - cargo check
|
||||
|
||||
name: ci
|
||||
|
||||
|
@ -25,8 +29,8 @@ env:
|
|||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.workflow }}-${{ github.event.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
||||
|
||||
jobs:
|
||||
# Check if things should be skipped.
|
||||
|
|
4
.github/workflows/coverage.yml
vendored
4
.github/workflows/coverage.yml
vendored
|
@ -13,8 +13,8 @@ env:
|
|||
CARGO_INCREMENTAL: 0
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.workflow }}-${{ github.event.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
||||
|
||||
jobs:
|
||||
pre_job:
|
||||
|
|
4
.github/workflows/test-docs.yml
vendored
4
.github/workflows/test-docs.yml
vendored
|
@ -6,8 +6,8 @@ on:
|
|||
pull_request:
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: true
|
||||
group: ${{ github.workflow }}-${{ github.event.ref }}
|
||||
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
||||
|
||||
jobs:
|
||||
pre_job:
|
||||
|
|
Loading…
Reference in a new issue