2022-09-02 11:49:35 +02:00
|
|
|
name: Verify codegen
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
verify-codegen:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-12-05 09:43:16 +01:00
|
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # pin@v3
|
2022-09-02 11:49:35 +02:00
|
|
|
|
|
|
|
- name: Unshallow
|
|
|
|
run: git fetch --prune --unshallow
|
|
|
|
|
|
|
|
- name: Set up Go
|
2022-12-06 07:49:45 +01:00
|
|
|
uses: actions/setup-go@d0a58c1c4d2b25278816e339b944508c875f3613 # v3.4.0
|
2022-09-02 11:49:35 +02:00
|
|
|
with:
|
2022-09-25 12:11:28 +02:00
|
|
|
go-version: ~1.18.6
|
2022-09-02 11:49:35 +02:00
|
|
|
|
|
|
|
- name: Set up Helm
|
2022-12-13 09:23:32 +01:00
|
|
|
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
|
2022-09-02 11:49:35 +02:00
|
|
|
with:
|
|
|
|
version: v3.5.0
|
|
|
|
|
|
|
|
- name: Cache Go modules
|
2022-12-05 08:58:10 +01:00
|
|
|
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7 # pin@v3
|
2022-09-02 11:49:35 +02:00
|
|
|
with:
|
|
|
|
path: |
|
|
|
|
~/.cache/go-build
|
|
|
|
~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
|
|
|
|
- name: Verify generated code is up to date
|
|
|
|
run: make verify-codegen
|