-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The ebpf libraries are not helping at all.
- Loading branch information
Showing
1 changed file
with
30 additions
and
3 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 |
---|---|---|
|
@@ -2,9 +2,9 @@ name: tests | |
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
pull_request: | ||
branches: ["main"] | ||
|
||
|
||
jobs: | ||
unit-test: | ||
|
@@ -47,6 +47,33 @@ jobs: | |
name: unit-test | ||
path: /tmp/unit/ | ||
|
||
linting: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # ratchet:actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # ratchet:actions/setup-go@v4 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Install Dependencies | ||
run: | | ||
sudo apt update | ||
sudo apt install -y clang | ||
sudo apt install -y libbpf-dev | ||
sudo apt install -y libseccomp-dev | ||
- name: Build coverage-instrumented binary | ||
run: | | ||
make build-static-libbpfgo | ||
make build-bpf | ||
- name: Golangci-lint | ||
uses: golangci/[email protected] | ||
with: | ||
args: internal/analyzer internal/archiver internal/elfreader internal/embeddable internal/executor internal/metadata harpoon/internal/privileged internal/seccomputils internal/writer | ||
|
||
integration-test: | ||
|
||
runs-on: ubuntu-latest | ||
|
@@ -76,7 +103,7 @@ jobs: | |
mkdir -p /tmp/integration | ||
# we have to run integration tests one-by-one | ||
# otherwhise they will run in parallel. | ||
# since harpoon apply network forwards, these could | ||
# since harpoon apply network forwards, these could | ||
# interact with each other and make the test fail. | ||
go test \ | ||
-exec sudo \ | ||
|