mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 05:50:27 +00:00
ci: cancel prior test runs for the same git ref (#9819)
This should save on CI quite a bit. This will cancel our GHA runs when you push to the same ref, except for `main`, where I want to make sure every commit is tested.
This commit is contained in:
5
.github/workflows/nix.yml
vendored
5
.github/workflows/nix.yml
vendored
@@ -1,5 +1,10 @@
|
||||
on: [push, pull_request]
|
||||
name: Nix
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name != 'main' && github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
required:
|
||||
name: "Required Checks: Nix"
|
||||
|
||||
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
@@ -5,6 +5,11 @@ on:
|
||||
|
||||
name: Test
|
||||
|
||||
# We only want the latest commit to test for any non-main ref.
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref_name != 'main' && github.ref || github.run_id }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
required:
|
||||
name: "Required Checks: Test"
|
||||
|
||||
Reference in New Issue
Block a user