Skip to content

Commit

Permalink
test: triggering tests on changes and allow cancelling in-progress CI…
Browse files Browse the repository at this point in the history
… test jobs (#4743)
  • Loading branch information
bowenliang123 authored May 31, 2024
1 parent b1c9671 commit 6dd0e07
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/api-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/tool-test-sdks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6dd0e07

Please sign in to comment.