forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (50 loc) · 1.37 KB
/
verify-generated-code-changes.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
name: Verify generated code changes
on:
workflow_dispatch:
pull_request:
push:
branches:
- 'release/*'
env:
MAIN_BRANCH: origin/master
GOARCH: amd64
CGO_ENABLED: 0
SETUP_GO_VERSION: '1.22.*'
jobs:
check-changes:
if: false
runs-on: test-runner-1
container: ubuntu:22.04
steps:
- name: Install tools
run: |
export TZ=Asia/Kolkata
export DEBIAN_FRONTEND=noninteractive
apt update && apt install -y --no-install-recommends curl sudo ca-certificates git-all
git config --global --add safe.directory '/__w/rancher/rancher'
-
uses: actions/checkout@v3
with:
fetch-depth: 0
-
uses: actions/setup-go@v4
with:
go-version: ${{ env.SETUP_GO_VERSION }}
-
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
-
name: Verify go.mod status
run: ./.github/scripts/check-for-go-mod-changes.sh
-
name: Install controller-gen
run: go install sigs.k8s.io/controller-tools/cmd/[email protected]
-
name: Verify auto-generated changes
run: ./.github/scripts/check-for-auto-generated-changes.sh