.github/workflows/test.yaml
raw| 1 | name: Lint and test |
| 2 | on: |
| 3 | push: |
| 4 | branches: |
| 5 | - develop |
| 6 | pull_request: |
| 7 | jobs: |
| 8 | test: |
| 9 | name: Lint and test |
| 10 | runs-on: ubuntu-latest |
| 11 | steps: |
| 12 | - name: Checkout |
| 13 | uses: actions/checkout@v2 |
| 14 | - name: Setup Go |
| 15 | uses: actions/setup-go@v2 |
| 16 | with: |
| 17 | go-version: 1.19.x |
| 18 | - name: Lint |
| 19 | uses: golangci/golangci-lint-action@v2 |
| 20 | with: |
| 21 | version: v1.50.1 |
| 22 | skip-go-installation: true |
| 23 | - name: Test |
| 24 | run: go test ./... |