Skip to content

Commit

Permalink
golangci: try to set up golangci
Browse files Browse the repository at this point in the history
The ebpf libraries are not helping at all.
  • Loading branch information
ccoVeille committed Sep 8, 2024
1 parent bb99b44 commit 636eea2
Showing 1 changed file with 30 additions and 3 deletions.
33 changes: 30 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: tests

on:
push:
branches: ["main"]

pull_request:
branches: ["main"]


jobs:
unit-test:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 636eea2

Please sign in to comment.