-
Notifications
You must be signed in to change notification settings - Fork 77
49 lines (43 loc) · 1.12 KB
/
check-codegen.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
name: check-codegen
on:
push:
branches:
- master
- release-*
pull_request:
workflow_dispatch:
jobs:
test:
concurrency:
group: codegen-${{ github.ref }}-${{ matrix.os }}-${{ matrix.go-version }}
cancel-in-progress: true
strategy:
matrix:
os: [ ubuntu-latest ]
go-version: [1.23.x]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Go Env
run: |
go env
- name: Build
run: |
go install ./internal/cmd/gtrace
go install ./internal/cmd/gstack
go install go.uber.org/mock/mockgen@v0.4.0
- name: Clean and re-generate *_gtrace.go files
run: |
rm -f ./trace/*_gtrace.go
go generate ./trace
go generate ./...
- name: Re-generate stack.FunctionID calls
run: |
gstack .
- name: Check repository diff
run: bash ./.github/scripts/check-work-copy-equals-to-committed.sh "code-generation not equal with committed"