From 99b7ef705655ed7b4e9a2722e792916f4a430f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geyslan=20Greg=C3=B3rio?= Date: Thu, 24 Aug 2023 17:36:55 -0300 Subject: [PATCH] chore(github): add workflow test (#370) Add `libbpfgo-unit-tests` to the workflow test. --- .github/workflows/pr.yaml | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index b12fc853..a4738d6a 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -52,8 +52,24 @@ jobs: run: | make lint-check shell: bash - unit-tests: - name: Unit Tests + libbpfgo-unit-tests: + name: libbpfgo Unit Tests + runs-on: ubuntu-22.04 + strategy: + matrix: + go-version: [ 1.18, 1.19, '1.20', 'stable' ] + steps: + - name: Checkout Code + uses: actions/checkout@v3 + - name: Install Dependencies + uses: ./.github/actions/build-dependencies + with: + go-version: ${{ matrix.go-version }} + - name: Test libbpfgo + run: | + make libbpfgo-static-test + helpers-unit-tests: + name: Helpers Unit Tests runs-on: ubuntu-22.04 strategy: matrix: