| 1 | name: build |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - master |
| 7 | paths-ignore: |
| 8 | - .github/** |
| 9 | - .gitignore |
| 10 | - .whitesource |
| 11 | - codecov.yml |
| 12 | - README.md |
| 13 | pull_request: |
| 14 | paths-ignore: |
| 15 | - .github/** |
| 16 | - .gitignore |
| 17 | - .whitesource |
| 18 | - codecov.yml |
| 19 | - README.md |
| 20 | |
| 21 | jobs: |
| 22 | build: |
| 23 | runs-on: ubuntu-latest |
| 24 | strategy: |
| 25 | fail-fast: false |
| 26 | matrix: |
| 27 | include: |
| 28 | - go: 1.15 |
| 29 | build-with: true |
| 30 | - go: 1.16 |
| 31 | build-with: false |
| 32 | continue-on-error: ${{ matrix.build-with == false }} |
| 33 | name: Build with ${{ matrix.go }} |
| 34 | env: |
| 35 | GO111MODULE: on |
| 36 | |
| 37 | steps: |
| 38 | - name: Set up Go |
| 39 | uses: actions/setup-go@v1 |
| 40 | with: |
| 41 | go-version: ${{ matrix.go }} |
| 42 | |
| 43 | - name: Checkout code |
| 44 | uses: actions/checkout@v2 |
| 45 | |
| 46 | - name: Vet |
| 47 | run: go vet ./... |