github.com/agiledragon/gomonkey/v2@v2.11.1-0.20240427155748-d56c6823ec17/.github/workflows/reviewdog.yaml (about) 1 name: actions 2 on: 3 push: 4 branches: 5 - master 6 pull_request: 7 types: 8 - opened 9 - reopened 10 - synchronize 11 - ready_for_review 12 jobs: 13 test: 14 if: ${{ !github.event.pull_request.draft }} 15 name: Test 16 runs-on: ubuntu-latest 17 strategy: 18 fail-fast: false 19 matrix: 20 go-version: 21 - "golang:1.21" 22 - "golang:1.20" 23 - "golang:1.19" 24 - "golang:1.18" 25 - "golang:1.17" 26 - "golang:1.16" 27 - "golang:1.15" 28 - "golang:1.14" 29 30 steps: 31 - name: Check out code 32 uses: actions/checkout@v3 33 34 - name: Run Unit tests. 35 env: 36 BUILD_IMAGE: ${{ matrix.go-version }} 37 run: make test 38 39 - name: Coverage 40 run: bash <(curl -s https://codecov.io/bash) 41 42 build: 43 if: ${{ !github.event.pull_request.draft }} 44 name: build 45 runs-on: ubuntu-latest 46 steps: 47 - name: Check out code 48 uses: actions/checkout@v3 49 50 - name: Set up Go 51 uses: actions/setup-go@v3 52 with: 53 go-version: 1.14 54 cache: true 55 56 - name: Run Build. 57 run: go build ./...