From 680e65dd967ab1b4812ae51893acd0801e5c69df Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Wed, 29 Jan 2025 19:38:29 +0100 Subject: [PATCH] more commits Signed-off-by: Mahe Tardy --- .github/workflows/static-checks.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/static-checks.yaml b/.github/workflows/static-checks.yaml index 90d8198edca..7eea86a0cdb 100644 --- a/.github/workflows/static-checks.yaml +++ b/.github/workflows/static-checks.yaml @@ -36,6 +36,14 @@ jobs: # renovate: datasource=golang-version depName=go go-version: '1.23.5' + - name: Check if build works for every commit + run: | + PR_FIRST_COMMIT=$(git rev-list --reverse -1 origin/${{ github.event.pull_request.base.ref }}..HEAD) + git rebase --exec "make -j $(nproc) tetragon tetra tetragon-bpf" $PR_FIRST_COMMIT^ + + - name: Failed commit during the build + if: ${{ failure() }} + run: git --no-pager log --format=%B -n 1 ensure-no-binary-checkin: runs-on: ubuntu-latest