Skip to content

[fix #430] pin gocov to v1.1.0 and remove duplicate install step in CDC CI #766

[fix #430] pin gocov to v1.1.0 and remove duplicate install step in CDC CI

[fix #430] pin gocov to v1.1.0 and remove duplicate install step in CDC CI #766

Workflow file for this run

name: TiKV-CDC
on:
push:
branches: main
paths: cdc/**
pull_request:
branches: main
# paths: cdc/**
permissions:
contents: read
env:
GO_VERSION: 1.21.4
jobs:
cdc-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GO_VERSION }}"
- name: make check
shell: bash
run: |
cd cdc/
make check
cdc-check-gosec:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GO_VERSION }}"
- name: make check-gosec
shell: bash
run: |
cd cdc/
make check-gosec
cdc-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GO_VERSION }}"
- name: make cdc
shell: bash
run: |
cd cdc/
make cdc
cdc-unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "${{ env.GO_VERSION }}"
- name: install gocov
shell: bash
run: |
go install github.com/axw/gocov/gocov@v1.2.0
- name: make unit_test_in_verify_ci
shell: bash
env:
TIKV_MIGRATION_CODECOV_TOKEN: ${{ secrets.TIKV_MIGRATION_CODECOV_TOKEN }}
run: |
cd cdc/
make unit_test_in_verify_ci