stability-test-non-next-gen - 2026-08-29 00:00:16 #3948
Workflow file for this run
This file contains hidden or 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
| name: PR Build and Unit Test | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| branches: | |
| - master | |
| - "release-[0-9].[0-9]*" | |
| - "release-nextgen-[0-9]*" | |
| paths: | |
| - '**' | |
| - '!**/*.md' | |
| - '!**/*.png' | |
| - '!**/*.jpeg' | |
| - '!**/*.jpg' | |
| - '!**/*.gif' | |
| - '!**/*.svg' | |
| - '!**/*.pdf' | |
| - '!**/*.yaml' | |
| - '!**/*.json' | |
| - '!**/*.toml' | |
| - '!**/Dockerfile' | |
| - '!**/OWNERS' | |
| - '!**/OWNERS_ALIASES' | |
| - '.github/workflows/**' | |
| # 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: | |
| check: | |
| name: Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Go environment | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Cache Tools | |
| id: cache-tools | |
| uses: actions/cache@v4 | |
| with: | |
| path: tools/bin | |
| key: ubuntu-latest-ticdc-tools-${{ hashFiles('tools/check/go.sum') }} | |
| - name: Check | |
| run: make check | |
| - name: Lint | |
| run: make check-static LINT_NEW_FROM_REV="${{ github.event.pull_request.base.sha }}" | |
| classic_build_and_test: | |
| if: >- | |
| ${{ | |
| github.base_ref == 'master' || | |
| startsWith(github.base_ref, 'release-') && | |
| !startsWith(github.base_ref, 'release-nextgen-') | |
| }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| task: | |
| - name: Build Classic CDC | |
| command: make cdc | |
| - name: Classic Unit Tests | |
| command: make unit_test_in_verify_ci | |
| name: ${{ matrix.task.name }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go environment | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Cache Tools | |
| id: cache-tools | |
| uses: actions/cache@v4 | |
| with: | |
| path: tools/bin | |
| key: ubuntu-latest-ticdc-tools-${{ hashFiles('tools/check/go.sum') }} | |
| - name: ${{ matrix.task.name }} | |
| run: ${{ matrix.task.command }} | |
| nextgen_build_and_test: | |
| if: >- | |
| ${{ | |
| github.base_ref == 'master' || | |
| startsWith(github.base_ref, 'release-nextgen-') | |
| }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| task: | |
| - name: Build Next Gen CDC | |
| command: NEXT_GEN=1 make cdc | |
| - name: Next Gen Unit Tests | |
| command: make unit_test_in_verify_ci_next_gen | |
| name: ${{ matrix.task.name }} | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Setup Go environment | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: 'go.mod' | |
| - name: Cache Tools | |
| id: cache-tools | |
| uses: actions/cache@v4 | |
| with: | |
| path: tools/bin | |
| key: ubuntu-latest-ticdc-tools-${{ hashFiles('tools/check/go.sum') }} | |
| - name: ${{ matrix.task.name }} | |
| run: ${{ matrix.task.command }} |