| 1 | on: |
| 2 | push: |
| 3 | branches: |
| 4 | - master |
| 5 | - v1 |
| 6 | pull_request: |
| 7 | branches: |
| 8 | - "**" |
| 9 | name: Test |
| 10 | jobs: |
| 11 | test: |
| 12 | strategy: |
| 13 | matrix: |
| 14 | go-version: [1.14.x, 1.15.x, 1.16.x] |
| 15 | os: [ubuntu-latest] |
| 16 | runs-on: ${{ matrix.os }} |
| 17 | steps: |
| 18 | - name: Install Go |
| 19 | uses: actions/setup-go@v2 |
| 20 | with: |
| 21 | go-version: ${{ matrix.go-version }} |
| 22 | - name: Checkout code |
| 23 | uses: actions/checkout@v2 |
| 24 | - name: Dependencies |
| 25 | run: go get -u honnef.co/go/tools/cmd/staticcheck |
| 26 | env: |
| 27 | GO111MODULE: off |
| 28 | - name: Test |
| 29 | run: go test -v -race -tags=integration |