-
Notifications
You must be signed in to change notification settings - Fork 30
53 lines (49 loc) · 1.04 KB
/
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
41
42
43
44
45
46
47
48
49
50
51
52
53
name: go
on:
push:
branches:
- master
paths:
- .github/workflows/go.yaml
- '**.go'
- go.*
pull_request:
paths:
- .github/workflows/go.yaml
- '**.go'
- go.*
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.2
cache: true
- uses: golangci/golangci-lint-action@v5
with:
version: v1.57.2
args: --timeout=3m
tidy:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.2
cache: true
- run: go mod tidy
- uses: int128/update-generated-files-action@v2
test:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.22.2
cache: true
- run: go test -v -race ./...