Debian Codegraph @

.github/workflows/main.yml

raw symbols SCIP
1 name: Test
2 on:
3 pull_request:
4 push:
5 branches:
6 - master
7 tags:
8 - v*
9 jobs:
10 test:
11 strategy:
12 matrix:
13 os:
14 - macos-latest
15 - ubuntu-latest
16 - windows-latest
17 runs-on: ${{ matrix.os }}
18 steps:
19 - name: Set up Go
20 uses: actions/setup-go@v1
21 with:
22 go-version: 1.x
23 - name: Cache Go modules
24 uses: actions/cache@v1
25 with:
26 path: ~/go/pkg/mod
27 key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
28 restore-keys: |
29 ${{ runner.os }}-go-
30 - name: Checkout
31 uses: actions/checkout@v2
32 - name: Build
33 run: go build ./...
34 - name: Test
35 run: go test ./...
36 lint:
37 runs-on: ubuntu-latest
38 steps:
39 - name: Checkout
40 uses: actions/checkout@v2
41 - name: Lint
42 uses: golangci/golangci-lint-action@v2
43 with:
44 version: v1.42.1