test: triggering tests on changes and allow cancelling in-progress CI test jobs (#4743)

pull/4845/head
Bowen Liang 2 years ago committed by GitHub
parent b1c9671a60
commit 6dd0e07af8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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:

@ -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:

@ -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

Loading…
Cancel
Save