Skip to content

Commit 53d612a

Browse files
committed
ci: merge cdc jobs to reduce duplicated setup
1 parent 1b053f6 commit 53d612a

1 file changed

Lines changed: 10 additions & 24 deletions

File tree

.github/workflows/ci-cdc.yml

Lines changed: 10 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -27,48 +27,34 @@ defaults:
2727
working-directory: cdc
2828

2929
jobs:
30-
cdc-lint:
30+
cdc-check:
3131
runs-on: ubuntu-latest
32-
timeout-minutes: 20
32+
timeout-minutes: 30
3333
steps:
3434
- uses: actions/checkout@v4
3535
- uses: actions/setup-go@v5
3636
with:
3737
go-version-file: cdc/go.mod
38-
cache-dependency-path: cdc/go.sum
38+
cache-dependency-path: |
39+
cdc/go.sum
40+
cdc/tools/check/go.sum
3941
- name: make check
4042
run: make check
41-
cdc-check-gosec:
42-
runs-on: ubuntu-latest
43-
timeout-minutes: 20
44-
steps:
45-
- uses: actions/checkout@v4
46-
- uses: actions/setup-go@v5
47-
with:
48-
go-version-file: cdc/go.mod
49-
cache-dependency-path: cdc/go.sum
5043
- name: make check-gosec
5144
run: make check-gosec
52-
cdc-build:
45+
cdc-build-and-unit-test:
5346
runs-on: ubuntu-latest
54-
timeout-minutes: 20
47+
timeout-minutes: 40
5548
steps:
5649
- uses: actions/checkout@v4
5750
- uses: actions/setup-go@v5
5851
with:
5952
go-version-file: cdc/go.mod
60-
cache-dependency-path: cdc/go.sum
53+
cache-dependency-path: |
54+
cdc/go.sum
55+
cdc/tools/check/go.sum
6156
- name: make cdc
6257
run: make cdc
63-
cdc-unit-test:
64-
runs-on: ubuntu-latest
65-
timeout-minutes: 20
66-
steps:
67-
- uses: actions/checkout@v4
68-
- uses: actions/setup-go@v5
69-
with:
70-
go-version-file: cdc/go.mod
71-
cache-dependency-path: cdc/go.sum
7258
- name: make unit_test_in_verify_ci
7359
env:
7460
TIKV_MIGRATION_CODECOV_TOKEN: ${{ secrets.TIKV_MIGRATION_CODECOV_TOKEN }}

0 commit comments

Comments
 (0)