.github/workflows/test.yaml
raw| 1 | on: [push, pull_request] |
| 2 | name: Test |
| 3 | jobs: |
| 4 | test: |
| 5 | runs-on: ubuntu-latest |
| 6 | strategy: |
| 7 | matrix: |
| 8 | go-version: [1.14.x, 1.15.x] |
| 9 | steps: |
| 10 | - name: Install Go |
| 11 | uses: actions/setup-go@v2 |
| 12 | with: |
| 13 | go-version: ${{ matrix.go-version }} |
| 14 | - name: Checkout code |
| 15 | uses: actions/checkout@v2 |
| 16 | - name: Lint |
| 17 | uses: golangci/golangci-lint-action@v2 |
| 18 | with: |
| 19 | version: v1.31 |
| 20 | args: --deadline=30m |
| 21 | - name: Run unit tests |
| 22 | run: go test ./... |