Skip to content

Commit

Permalink
Unify the e2e setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MrAlias committed Dec 20, 2024
1 parent e641078 commit 5103924
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,26 @@ on:
pull_request:

jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install build dependencies
run: sudo apt-get install -y clang llvm libbpf-dev
- name: Install Go
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
with:
go-version: "~1.23.1"
check-latest: true
- name: Run generate
run: make generate
- uses: actions/upload-artifact@v4
with:
name: repo
path: ./
test:
needs: setup
strategy:
matrix:
library:
Expand All @@ -23,12 +42,9 @@ jobs:
- otelglobal
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Install build dependencies
run: sudo apt-get update && sudo apt-get install -y clang llvm libbpf-dev
- name: Run generate
run: make generate
- uses: actions/download-artifact@v4
with:
name: repo
- name: Clean
run: |
rm -f ./internal/test/e2e/${{ matrix.library }}/traces{,-orig}.json
Expand Down

0 comments on commit 5103924

Please sign in to comment.