From 839e9ec66341e39e6587be1dfbcfaaa3e86a97fc Mon Sep 17 00:00:00 2001 From: Mahe Tardy Date: Wed, 18 Oct 2023 13:20:31 +0000 Subject: [PATCH] ci: add veristat comparison on pull requests Signed-off-by: Mahe Tardy --- .github/workflows/veristat-compare.yaml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/veristat-compare.yaml diff --git a/.github/workflows/veristat-compare.yaml b/.github/workflows/veristat-compare.yaml new file mode 100644 index 00000000000..12811f9462e --- /dev/null +++ b/.github/workflows/veristat-compare.yaml @@ -0,0 +1,33 @@ +name: Run veristat compare +on: + pull_request: + paths-ignore: + - 'docs/**' + - '**.md' + +jobs: + veristat-compare: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 + with: + path: branch + + - name: Checkout + uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 + with: + path: base + ref: ${{ github.base_ref }} + + - name: Build BPF programs + run: | + make -C branch tetragon-bpf + make -C base tetragon-bpf + + - name: Run veristat comparison + uses: mtardy/veristat-action@35c8885118c1b3046f6a5fdedf1cc5670e584cf9 # v1.0.0 + with: + compare: true + baseline-programs: base/bpf/objs/*.o + comparison-programs: branch/bpf/objs/*.o