-
Notifications
You must be signed in to change notification settings - Fork 37
55 lines (47 loc) · 1.01 KB
/
test_and_lint.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
on:
push:
paths:
- '**.go'
- 'go.mod'
- '**.yml'
pull_request:
paths:
- '**.go'
- 'go.mod'
- '**.yml'
name: Test & Lint
env:
GO111MODULE: on
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '^1.23'
cache: false
- run: go get
- run: go test -v -race ./...
lint:
runs-on: ubuntu-latest
steps:
- name: Code
uses: actions/checkout@v4
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '^1.23'
cache: false
- run: go get
- name: Go vet
run: go vet ./...
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
with:
version: 'v1.61.0'
args: '--timeout 9999s'
only-new-issues: ${{ github.event.name == 'pull_request' }}
skip-save-cache: true