Skip to content

Commit 2bf52d7

Browse files
committed
Unify the e2e setup
1 parent 91dc9e2 commit 2bf52d7

File tree

1 file changed

+22
-6
lines changed

1 file changed

+22
-6
lines changed

.github/workflows/e2e.yaml

+22-6
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,26 @@ on:
99
pull_request:
1010

1111
jobs:
12+
setup:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17+
- name: Install build dependencies
18+
run: sudo apt-get install -y clang llvm libbpf-dev
19+
- name: Install Go
20+
uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # v5
21+
with:
22+
go-version: "~1.23.1"
23+
check-latest: true
24+
- name: Run generate
25+
run: make generate
26+
- uses: actions/upload-artifact@v4
27+
with:
28+
name: repo
29+
path: ./
1230
test:
31+
needs: setup
1332
strategy:
1433
matrix:
1534
library:
@@ -23,12 +42,9 @@ jobs:
2342
- otelglobal
2443
runs-on: ubuntu-latest
2544
steps:
26-
- name: Checkout Repo
27-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
28-
- name: Install build dependencies
29-
run: sudo apt-get update && sudo apt-get install -y clang llvm libbpf-dev
30-
- name: Run generate
31-
run: make generate
45+
- uses: actions/download-artifact@v4
46+
with:
47+
name: repo
3248
- name: Clean
3349
run: |
3450
rm -f ./internal/test/e2e/${{ matrix.library }}/traces{,-orig}.json

0 commit comments

Comments
 (0)