-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflows: run BPF unit tests on BPF changes
Signed-off-by: Mahe Tardy <[email protected]>
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: BPF Unit Tests | ||
on: | ||
pull_request: | ||
paths: | ||
- 'bpf/**' | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'bpf/**' | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-20.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: Run BPF unit test | ||
run: make bpf-test BPFGOTESTFLAGS="-v" |