-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (49 loc) · 1.07 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:
pull_request:
paths:
- .github/workflows/go.yaml
- '**.go'
- go.*
push:
branches:
- main
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.23.0
cache: false # by golangci-lint-action
- uses: golangci/golangci-lint-action@v6
with:
version: v1.60.3
args: --timeout=3m
generate:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.23.0
- run: go mod tidy
- run: make fmt
- run: make generate manifests
- 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.23.0
- run: make test