Debian Codegraph @

.github/workflows/ci.yml

raw
1 name: ci
2
3 on:
4 pull_request:
5 branches:
6 - main
7 push:
8 branches:
9 - main
10
11 env:
12 GOPROXY: https://proxy.golang.org/
13
14 jobs:
15 test:
16 runs-on: ${{ matrix.os }}
17 strategy:
18 matrix:
19 os:
20 - ubuntu-latest
21 - windows-latest
22 - macos-latest
23 go:
24 - '1.19'
25 - '1.20'
26 steps:
27 -
28 name: Checkout
29 uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # https://github.com/actions/checkout/releases/tag/v3.4.0
30 -
31 name: Unshallow
32 run: git fetch --prune --unshallow
33 -
34 name: Set up Go
35 uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # https://github.com/actions/setup-go/releases/tag/v4.0.0
36 with:
37 go-version: ${{ matrix.go }}
38 -
39 name: Go mod download
40 run: go mod download -x
41 -
42 name: Go mod verify
43 run: go mod verify
44 -
45 name: Run tests
46 run: go test -v ./...