diff options
author | Michaël Zasso <targos@protonmail.com> | 2022-02-18 18:46:12 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 18:46:12 +0300 |
commit | 5348552b9396b69cc5d49a287a573e20ce55751c (patch) | |
tree | 2721f022b05a8dce5c40182d1ef8f5068f34dd5f /.github | |
parent | d274d63de211140b598e3117c82a23d6713c98c8 (diff) |
build: cancel running CI jobs when a PR is updated
Refs: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-fallback-value
PR-URL: https://github.com/nodejs/node/pull/42017
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Tierney Cyren <hello@bnb.im>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Mary Marchini <oss@mmarchini.me>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/build-tarball.yml | 4 | ||||
-rw-r--r-- | .github/workflows/build-windows.yml | 4 | ||||
-rw-r--r-- | .github/workflows/coverage-linux.yml | 4 | ||||
-rw-r--r-- | .github/workflows/coverage-windows.yml | 4 | ||||
-rw-r--r-- | .github/workflows/doc.yml | 4 | ||||
-rw-r--r-- | .github/workflows/linters.yml | 4 | ||||
-rw-r--r-- | .github/workflows/test-asan.yml | 4 | ||||
-rw-r--r-- | .github/workflows/test-internet.yml | 4 | ||||
-rw-r--r-- | .github/workflows/test-linux.yml | 4 | ||||
-rw-r--r-- | .github/workflows/test-macos.yml | 4 |
10 files changed, 40 insertions, 0 deletions
diff --git a/.github/workflows/build-tarball.yml b/.github/workflows/build-tarball.yml index 9ae492a7fc1..38a8922c093 100644 --- a/.github/workflows/build-tarball.yml +++ b/.github/workflows/build-tarball.yml @@ -24,6 +24,10 @@ on: - .github/** - '!.github/workflows/build-tarball.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index 6442262f040..695675b5994 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -19,6 +19,10 @@ on: - .github/** - '!.github/workflows/build-windows.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/coverage-linux.yml b/.github/workflows/coverage-linux.yml index 7cd43ea6672..65004c243f3 100644 --- a/.github/workflows/coverage-linux.yml +++ b/.github/workflows/coverage-linux.yml @@ -20,6 +20,10 @@ on: - .github/** - '!.github/workflows/coverage-linux.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/coverage-windows.yml b/.github/workflows/coverage-windows.yml index 09079d2381e..234719548d0 100644 --- a/.github/workflows/coverage-windows.yml +++ b/.github/workflows/coverage-windows.yml @@ -22,6 +22,10 @@ on: - .github/** - '!.github/workflows/coverage-windows.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 3cf114f94c0..9bb872f3538 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -10,6 +10,10 @@ on: - v[0-9]+.x-staging - v[0-9]+.x +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: NODE_VERSION: lts/* diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index a351f6b2a6b..b8bc5ecb92e 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -10,6 +10,10 @@ on: - v[0-9]+.x-staging - v[0-9]+.x +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' NODE_VERSION: lts/* diff --git a/.github/workflows/test-asan.yml b/.github/workflows/test-asan.yml index 91fcb0f4e93..5f2f1c93c3d 100644 --- a/.github/workflows/test-asan.yml +++ b/.github/workflows/test-asan.yml @@ -25,6 +25,10 @@ on: - .github/** - '!.github/workflows/test-asan.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/test-internet.yml b/.github/workflows/test-internet.yml index a7a3f80ff1b..9b504980301 100644 --- a/.github/workflows/test-internet.yml +++ b/.github/workflows/test-internet.yml @@ -17,6 +17,10 @@ on: - v[0-9]+.x paths: [test/internet/**] +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/test-linux.yml b/.github/workflows/test-linux.yml index 3119df3c8af..22b5e9a35d3 100644 --- a/.github/workflows/test-linux.yml +++ b/.github/workflows/test-linux.yml @@ -19,6 +19,10 @@ on: - .github/** - '!.github/workflows/test-linux.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare diff --git a/.github/workflows/test-macos.yml b/.github/workflows/test-macos.yml index 5d83e786d38..40885bd9e65 100644 --- a/.github/workflows/test-macos.yml +++ b/.github/workflows/test-macos.yml @@ -25,6 +25,10 @@ on: - .github/** - '!.github/workflows/test-macos.yml' +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + env: PYTHON_VERSION: '3.10' FLAKY_TESTS: dontcare |