-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (38 loc) · 845 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Go
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
strategy:
fail-fast: false
matrix:
go-version:
- '1.21'
- '1.20'
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Set up Staticcheck
run: go install honnef.co/go/tools/cmd/staticcheck@latest
- name: Checkout
uses: actions/checkout@v4
- name: Vet
run: go vet -v ./...
- name: Staticcheck
run: staticcheck ./...
- name: Build
run: go build -v ./...
- name: Test
run: go test -v -cover -race -count=3 ./...