Skip to content

Commit

Permalink
chore: verify e2e workflow is up to date in CI
Browse files Browse the repository at this point in the history
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
  • Loading branch information
eddycharly committed Aug 29, 2024
1 parent 23c15db commit 7c7cb7d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/check-codegen.yml
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 .

0 comments on commit 7c7cb7d

Please sign in to comment.