mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-07-22 21:24:49 +02:00
ci: try only having cancel-in-progress for non-main branch (#864)
This commit is contained in:
parent
1adc032570
commit
d56b551e39
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://github.com/BurntSushi/ripgrep/blob/master/.github/workflows/ci.yml
|
||||||
# - https://www.reillywood.com/blog/rust-faster-ci/
|
# - https://www.reillywood.com/blog/rust-faster-ci/
|
||||||
#
|
#
|
||||||
# It should do the following:
|
# It should run the following:
|
||||||
# - cargo fmt on supported platforms
|
# Supported platforms:
|
||||||
# - cargo test on supported platforms, cargo check on unsupported
|
# - cargo fmt
|
||||||
# - cargo clippy after (apparently faster) on supported platforms
|
# - cargo test
|
||||||
|
# - cargo clippy after (apparently faster to do so)
|
||||||
|
#
|
||||||
|
# Unsupported platforms:
|
||||||
|
# - cargo check
|
||||||
|
|
||||||
name: ci
|
name: ci
|
||||||
|
|
||||||
@ -25,8 +29,8 @@ env:
|
|||||||
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
CARGO_HUSKY_DONT_INSTALL_HOOKS: true
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Check if things should be skipped.
|
# 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
|
CARGO_INCREMENTAL: 0
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
|
4
.github/workflows/test-docs.yml
vendored
4
.github/workflows/test-docs.yml
vendored
@ -6,8 +6,8 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.event.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pre_job:
|
pre_job:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user