-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: verify e2e workflow is up to date in CI (#1143)
Signed-off-by: Charles-Edouard Brétéché <[email protected]>
- Loading branch information
1 parent
23c15db
commit 8e0d924
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Verify codegen | ||
|
||
permissions: {} | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
verify-e2e-workflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
- name: Set up Go | ||
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 | ||
with: | ||
go-version-file: .hack/chainsaw-matrix/go.mod | ||
cache-dependency-path: .hack/chainsaw-matrix/go.sum | ||
- name: Generate workflow | ||
run: | | ||
set -e | ||
(cd .hack/chainsaw-matrix && go run . > ../../.github/workflows/test.yml) | ||
- name: Check diff | ||
run: | | ||
set -e | ||
git --no-pager diff . | ||
git diff --quiet --exit-code . |