-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f8624f2
commit cf2f4c6
Showing
2 changed files
with
90 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
name: Uint-Test | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- "release-[0-9].[0-9]*" | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/OWNERS' | ||
- 'OWNERS' | ||
- 'OWNERS_ALIASES' | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- "release-[0-9].[0-9]*" | ||
paths-ignore: | ||
- '**/*.md' | ||
- '**/OWNERS' | ||
- 'OWNERS' | ||
- 'OWNERS_ALIASES' | ||
|
||
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. | ||
concurrency: | ||
group: ${{ github.ref }}-${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
dispatcher_unit_test: | ||
runs-on: ubuntu-latest | ||
name: Dispatcher Unit Test | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Go environment | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Unit Test | ||
run: | | ||
cd pkg/sink/mysql | ||
go test --tags=intest | ||
cd ../util | ||
go test | ||
cd ../../../downstreamadapter/sink/ | ||
go test ./... --tags=intest | ||
cd ../dispatcher | ||
go test --tags=intest | ||
cd ../worker | ||
go test ./... --tags=intest | ||
cd ../../pkg/sink/codec | ||
cd open | ||
go test --tags=intest | ||
cd ../canal | ||
go test --tags=intest | ||
maintainer_unit_test: | ||
runs-on: ubuntu-latest | ||
name: Maintainer Unit Test | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Go environment | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Unit Test | ||
run: | | ||
go test --tags=intest -timeout 120s github.com/pingcap/ticdc/maintainer/... | ||
coordinator_unit_test: | ||
runs-on: ubuntu-latest | ||
name: Coordinator Unit Test | ||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Go environment | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.23' | ||
|
||
- name: Unit Test | ||
run: | | ||
go test --tags=intest -timeout 120s github.com/pingcap/ticdc/coordinator/... |