-
Notifications
You must be signed in to change notification settings - Fork 26
40 lines (37 loc) · 922 Bytes
/
go.yaml
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
39
40
name: Testing
on:
pull_request: {}
push:
branches:
- main
jobs:
test:
strategy:
matrix:
go: [ '1.23' ]
os: [ ubuntu-latest, macOS-latest ]
runs-on: ${{matrix.os}}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go}}
- name: go vet
shell: bash --noprofile --norc -x -eo pipefail {0}
run: |
go mod tidy
go vet ./...
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
version: v1.60
- name: Run tests
shell: bash --noprofile --norc -x -eo pipefail {0}
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
run: |
export GOPATH="$RUNNER_WORKSPACE"
go test -v -race -p 1 ./...
./scripts/cov.sh CI