workflows/tests: enable concurrency limiting.
Let's cancel in-progress builds on the same PR.
This commit is contained in:
parent
9814c8a569
commit
a3f96689f0
7
.github/workflows/tests.yml
vendored
7
.github/workflows/tests.yml
vendored
@ -1,12 +1,19 @@
|
|||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
HOMEBREW_DEVELOPER: 1
|
HOMEBREW_DEVELOPER: 1
|
||||||
HOMEBREW_NO_AUTO_UPDATE: 1
|
HOMEBREW_NO_AUTO_UPDATE: 1
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: "${{ github.ref }}"
|
||||||
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
syntax:
|
syntax:
|
||||||
if: github.repository == 'Homebrew/brew'
|
if: github.repository == 'Homebrew/brew'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user