mirror of
https://github.com/langgenius/dify.git
synced 2024-11-16 03:32:23 +08:00
test: triggering tests on changes and allow cancelling in-progress CI test jobs (#4743)
This commit is contained in:
parent
b1c9671a60
commit
6dd0e07af8
7
.github/workflows/api-tests.yml
vendored
7
.github/workflows/api-tests.yml
vendored
|
@ -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:
|
||||
|
|
2
.github/workflows/style.yml
vendored
2
.github/workflows/style.yml
vendored
|
@ -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:
|
||||
|
|
7
.github/workflows/tool-test-sdks.yaml
vendored
7
.github/workflows/tool-test-sdks.yaml
vendored
|
@ -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…
Reference in New Issue
Block a user