Debian Codegraph @

.github/workflows/ci.yaml

raw
1 name: CI
2 on: [push, pull_request]
3
4 jobs:
5 build_test:
6 name: Build and Test
7 strategy:
8 matrix:
9 go: ['1.13', '1.14', '1.15', '1.16', '1.17', '1.18', '1.19', '1.20']
10 runs-on: ubuntu-latest
11 steps:
12 - uses: actions/checkout@v3
13 - uses: actions/setup-go@v4
14 with:
15 go-version: ${{ matrix.go }}
16 - uses: actions/cache@v3
17 with:
18 path: ~/go/pkg/mod
19 key: ubuntu-go-${{ hashFiles('**/go.sum') }}
20 restore-keys: |
21 ubuntu-go-
22 - name: Test
23 run: go test -mod readonly -race ./...
24 - name: Test Verbose
25 run: go test -mod readonly -race -v ./...