diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c6959c3..e6635bc 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,11 +8,8 @@ on: jobs: build: - name: Test + name: test runs-on: ubuntu-latest - strategy: - matrix: - arch: [amd64, arm64] steps: - name: Set up Go 1.x uses: actions/setup-go@v2 @@ -22,12 +19,8 @@ jobs: - name: Check out code into the Go module directory uses: actions/checkout@v2 - - name: Install dependencies - run: | - sudo apt update - sudo apt install -y --no-install-recommends clang llvm libbpf0 libbpf-dev musl musl-dev gcc-multilib - # Ensure dependencies are installed for both architectures - if: matrix.arch == 'amd64' || matrix.arch == 'arm64' + - name: Install depends + run: sudo apt install -y --no-install-recommends clang llvm libbpf0 libbpf-dev musl musl-dev gcc-multilib - name: Generate run: make generate diff --git a/Makefile b/Makefile index 795bee0..7ecb315 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,7 @@ build-docker: # To run all tests, just run `make test`. # If you need to run specific tests, you can use `TNAMES`, -# example: `TNAMES="TestDrop|TestUndrop" make test`. +# Example: `TNAMES="TestDrop|TestUndrop" make test` test: generate CGO_ENABLED=0 go test -exec sudo ./... -run "^$(TNAMES)$\" -v -cover -coverprofile=coverage.txt -covermode=atomic -p=1