[PoC] Run integration tests using docker-compose #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |