From 6dd0e07af896e2a7b97ca95a62b9463db28824a1 Mon Sep 17 00:00:00 2001 From: Bowen Liang Date: Fri, 31 May 2024 16:42:14 +0800 Subject: [PATCH] test: triggering tests on changes and allow cancelling in-progress CI test jobs (#4743) --- .github/workflows/api-tests.yml | 7 +++++++ .github/workflows/style.yml | 2 +- .github/workflows/tool-test-sdks.yaml | 7 +++++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/api-tests.yml b/.github/workflows/api-tests.yml index bfb10546390af0..6a45b49588e1a9 100644 --- a/.github/workflows/api-tests.yml +++ b/.github/workflows/api-tests.yml @@ -4,9 +4,16 @@ on: pull_request: branches: - main + paths: + - api/** + +concurrency: + group: api-tests-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: test: + name: API Tests runs-on: ubuntu-latest strategy: matrix: diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index bdbc22b489b783..e008e1e0a1d0d0 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -6,7 +6,7 @@ on: - main concurrency: - group: dep-${{ github.head_ref || github.run_id }} + group: style-${{ github.head_ref || github.run_id }} cancel-in-progress: true jobs: diff --git a/.github/workflows/tool-test-sdks.yaml b/.github/workflows/tool-test-sdks.yaml index 575ead4b3be1a0..fb4bcb9d66fa08 100644 --- a/.github/workflows/tool-test-sdks.yaml +++ b/.github/workflows/tool-test-sdks.yaml @@ -4,6 +4,13 @@ on: pull_request: branches: - main + paths: + - sdks/** + +concurrency: + group: sdk-tests-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: build: name: unit test for Node.js SDK