Skip to content

fix(shim): never let a tracer-attach failure stop the real binary from running #219

fix(shim): never let a tracer-attach failure stop the real binary from running

fix(shim): never let a tracer-attach failure stop the real binary from running #219

Workflow file for this run

name: Run unit tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version: '1.27'
- name: Install required tools
run: sudo apt update && sudo apt install -y g++ make python3 elfutils
- name: Run unit tests
run: ./run_unit_tests.sh
- name: Coverage summary
run: |
echo "## Coverage" >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
go tool cover -func=coverage.out >> "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
- name: Upload coverage profile
uses: actions/upload-artifact@v6
with:
name: coverage-profile
path: coverage.out
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v6
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.out
fail_ci_if_error: false
- name: Build project
run: |
chmod +x build.sh
./build.sh
- name: Compile sample test binary
run: make -C tests/sample
- name: Run E2E tests (no bpftrace, prerequisites only)
run: sudo python3 tests/e2e/test_coverage.py TestPrerequisites TestInstallUninstall TestEnumerate