ariga.io/entcache@v0.1.1-0.20230620164151-0eb723a11c40/.github/workflow/ci.yml (about) 1 name: Continuous Integration 2 on: [push, pull_request] 3 4 jobs: 5 lint: 6 runs-on: ubuntu-latest 7 strategy: 8 matrix: 9 goversion: [1.17, 1.16] 10 steps: 11 - uses: actions/checkout@v2 12 - uses: actions/setup-go@v2 13 with: 14 go-version: ${{ matrix.goversion }} 15 - name: Run linters 16 uses: golangci/golangci-lint-action@v2.5.2 17 with: 18 version: v1.41.1 19 args: --timeout 3m 20 test: 21 runs-on: ubuntu-latest 22 strategy: 23 matrix: 24 goversion: [1.17, 1.16] 25 steps: 26 - uses: actions/checkout@v2 27 - uses: actions/setup-go@v2 28 with: 29 go-version: ${{ matrix.goversion }} 30 - uses: actions/cache@v2 31 with: 32 path: | 33 ~/go/pkg/mod 34 ~/.cache/go-build 35 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} 36 restore-keys: | 37 ${{ runner.os }}-go- 38 - name: Run tests 39 run: go test -race ./...