DEV: Cancel in-progress test runs on PRs (#15096)

DEV: Cancel in-progress test runs on PRs (#15096)

diff --git a/.github/workflows/ember.yml b/.github/workflows/ember.yml
index b906767..8a727a4 100644
--- a/.github/workflows/ember.yml
+++ b/.github/workflows/ember.yml
@@ -6,6 +6,10 @@ on:
     branches:
       - main
 
+concurrency:
+  group: ember-${{ format('{0}-{1}', github.head_ref, github.job) || format('{0}-{1}', github.ref, github.run_number) }}
+  cancel-in-progress: true
+
 jobs:
   build:
     name: run
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index ac5b712..11acb6e 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -6,6 +6,10 @@ on:
     branches:
       - main
 
+concurrency:
+  group: linting-${{ format('{0}-{1}', github.head_ref, github.job) || format('{0}-{1}', github.ref, github.run_number) }}
+  cancel-in-progress: true
+
 jobs:
   build:
     name: run
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 21234f8..4a760b1 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -6,6 +6,10 @@ on:
     branches:
       - main
 
+concurrency:
+  group: tests-${{ format('{0}-{1}', github.head_ref, github.job) || format('{0}-{1}', github.ref, github.run_number) }}
+  cancel-in-progress: true
+
 jobs:
   build:
     name: ${{ matrix.target }} ${{ matrix.build_type }}

GitHub sha: 78830d14b2bd4694abcfc7ac872358fdabe02c32

This commit appears in #15096 which was approved by CvX. It was merged by pmusaraj.