Skip to content

Commit

Permalink
workflows: run BPF unit tests on BPF changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mahe Tardy <mahe.tardy@gmail.com>
  • Loading branch information
mtardy committed Jan 3, 2024
1 parent c8bcf64 commit f08c16f
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/bpf-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: BPF Unit Tests
on:
pull_request:
paths:
- 'bpf/**'
push:
branches:
- main
paths:
- 'bpf/**'

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04, actuated-arm64-4cpu-8gb ]
steps:
- name: Checkout code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install Go
uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
# renovate: datasource=golang-version depName=go
go-version: '1.21.5'

- name: Install LLVM
run: sudo apt-get -y install clang llvm

- name: Run BPF unit test
run: make bpf-test BPFGOTESTFLAGS="-v"

0 comments on commit f08c16f

Please sign in to comment.