.github/workflows/check.yml
raw| 1 | name: Lint and Test |
| 2 | |
| 3 | on: push |
| 4 | |
| 5 | jobs: |
| 6 | check: |
| 7 | runs-on: ubuntu-latest |
| 8 | steps: |
| 9 | - name: Get sources |
| 10 | uses: actions/checkout@v3 |
| 11 | |
| 12 | - name: Set up Go 1.18 |
| 13 | uses: actions/setup-go@v3 |
| 14 | with: |
| 15 | go-version: '1.18' |
| 16 | |
| 17 | - name: Run golangci-lint |
| 18 | uses: golangci/golangci-lint-action@v3 |
| 19 | with: |
| 20 | version: v1.50.0 |
| 21 | args: --timeout=180s |
| 22 | skip-cache: true |
| 23 | |
| 24 | - name: Run tests |
| 25 | run: go test -v ./... |
| 26 | |
| 27 | - name: Run tests with race check |
| 28 | run: go test -v -race ./... |