From 7c7cb7db0a1a3ddd3fb4a761230e7d5471a40c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Edouard=20Br=C3=A9t=C3=A9ch=C3=A9?= Date: Thu, 29 Aug 2024 10:32:01 +0200 Subject: [PATCH] chore: verify e2e workflow is up to date in CI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché --- .github/workflows/check-codegen.yml | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/check-codegen.yml diff --git a/.github/workflows/check-codegen.yml b/.github/workflows/check-codegen.yml new file mode 100644 index 000000000..8bc48606f --- /dev/null +++ b/.github/workflows/check-codegen.yml @@ -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 .