github.com/pingcap/ticdc@v0.0.0-20220526033649-485a10ef2652/.github/workflows/check_and_build.yml (about) 1 name: Check & Build 2 3 on: 4 push: 5 branches: 6 - master 7 - 'release-[0-9].[0-9]*' 8 pull_request: 9 branches: 10 - master 11 - 'release-[0-9].[0-9]*' 12 13 # See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency. 14 concurrency: 15 group: ${{ github.ref }}-${{ github.workflow }} 16 cancel-in-progress: true 17 18 jobs: 19 20 docker_build: 21 name: Docker Build 22 runs-on: ubuntu-latest 23 steps: 24 25 - name: Check out code into the Go module directory 26 uses: actions/checkout@v2 27 28 - name: Build 29 run: docker build . 30 31 make_check_build: 32 name: Make Check & Build 33 runs-on: ${{ matrix.os }} 34 strategy: 35 matrix: 36 os: [ubuntu-latest, macos-latest] 37 steps: 38 39 - name: Check out code into the Go module directory 40 uses: actions/checkout@v2 41 42 - name: Setup Go environment 43 uses: actions/setup-go@v2 44 with: 45 go-version: '1.15.8' 46 47 - name: Cache Lint Tools 48 id: cache-lint-tools 49 uses: actions/cache@v2 50 with: 51 path: tools/bin 52 key: ${{ runner.os }}-cdc-lint-tools-${{ hashFiles('tools/check/go.sum') }} 53 54 - name: Check 55 run: make check 56 57 - name: Build 58 run: make build