-
Notifications
You must be signed in to change notification settings - Fork 100
59 lines (57 loc) · 1.58 KB
/
e2e.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: e2e
on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
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:
- autosdk
- databasesql
- gin
- grpc
- kafka-go
- nethttp
- nethttp_custom
- otelglobal
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: repo
- name: Clean
run: |
rm -f ./internal/test/e2e/${{ matrix.library }}/traces{,-orig}.json
touch ./internal/test/e2e/${{ matrix.library }}/traces-orig.json
- name: Run docker-compose
uses: hoverkraft-tech/[email protected]
with:
compose-file: "./internal/test/e2e/${{ matrix.library }}/compose.yaml"
- name: Setup BATS
uses: mig4/setup-bats@af9a00deb21b5d795cabfeaa8d9060410377686d # v1
- name: Verify with BATS
run: bats ./internal/test/e2e/${{ matrix.library }}/verify.bats