-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (45 loc) · 1.19 KB
/
codegen.yaml
File metadata and controls
55 lines (45 loc) · 1.19 KB
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
name: Codegen CI
on:
push:
branches:
- main
paths:
- "codegen/**"
- ".github/workflows/codegen.yaml"
pull_request:
branches:
- main
paths:
- "codegen/**"
- ".github/workflows/codegen.yaml"
permissions:
contents: read
defaults:
run:
working-directory: ./codegen
env:
GOLANGCI_LINT_VERSION: v2.8.0
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: './codegen/go.mod'
- name: golangci-lint
uses: golangci/golangci-lint-action@1e7e51e771db61008b38414a730f564565cf7c20 # v9.2.0
with:
version: ${{ env.GOLANGCI_LINT_VERSION }}
working-directory: ./codegen
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: './codegen/go.mod'
- name: Run tests
run: go test ./...