Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / .github / workflows / ci.yml
1 name: "CI"
2 on: ["push", "pull_request"]
3
4 jobs:
5   test:
6     name: "Run unit tests"
7     strategy:
8       matrix:
9         os: ["windows-latest", "ubuntu-latest", "macOS-latest"]
10         go: ["1.12.x", "1.13.x"]
11     runs-on: ${{ matrix.os }}
12     steps:
13     - uses: actions/checkout@v1
14       with:
15         fetch-depth: 1
16     - uses: actions/setup-go@v1
17       with:
18         go-version: ${{ matrix.go }}
19     - run: "go test ./..."
20
21   lint:
22     name: "Run static analysis"
23     runs-on: "ubuntu-latest"
24     steps:
25     - uses: actions/setup-go@v1
26       with:
27         go-version: "1.13.x"
28     - run: "GO111MODULE=on go get honnef.co/go/tools/cmd/staticcheck"
29     - uses: actions/checkout@v1
30       with:
31         fetch-depth: 1
32     - run: "go vet ./..."
33     - run: "$(go env GOPATH)/bin/staticcheck -go 1.11 ./..."