Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: cancel primary_tests workflow jobs for stale PR commits (#13018)

Andrey Lushnikov174225697a5d
diff --git a/.github/workflows/tests_primary.yml b/.github/workflows/tests_primary.yml
index b18b7716bd..845cde34e1 100644
--- a/.github/workflows/tests_primary.yml
+++ b/.github/workflows/tests_primary.yml
@@ -13,6 +13,12 @@ on:
- main
- release-*
+concurrency:
+ # For pull requests, cancel all currently-running jobs for this workflow
+ # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
+ group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
env:
# Force terminal colors. @see https://www.npmjs.com/package/colors
FORCE_COLOR: 1