Skip to content

Proposal: integration testing #41

Proposal: integration testing

Proposal: integration testing #41

name: Integration Tests
on:
# Run tests on main just so the module and build cache can be saved and used
# in PRs. This speeds up the time it takes to test PRs dramatically.
push:
branches:
- main
pull_request:
jobs:
run_tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: "1.21.0"
cache-dependency-path: "**/*.sum"
- name: Set OTEL Exporter Endpoint
run: echo "OTEL_EXPORTER_ENDPOINT=http://172.17.0.1:8080" >> $GITHUB_ENV
- name: Run tests
run: |
vmstat 5 10 > vmstat_output.txt &
VMSTAT_PID=$!
cd integration-tests
./run-integration-tests.sh
cd ..
kill $VMSTAT_PID || true
- name: Display vmstat output
run: cat vmstat_output.txt