Skip to content

refactor(*): refactor configuration #1157

refactor(*): refactor configuration

refactor(*): refactor configuration #1157

Workflow file for this run

name: Test
permissions:
contents: read
on:
pull_request:
paths-ignore:
- '**/*.md'
push:
branches:
- main
paths-ignore:
- '**/*.md'
- '**/*.png'
- '**/*.gif'
jobs:
tests-unit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: run tests
run: make test-unit FLAGS=-coverprofile=coverage.txt
- name: upload coverage reselt to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: unit
services:
httpbin:
image: kennethreitz/httpbin
ports:
- 9999:80
tests-integration-main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: start dependencies
run: |
mkdir -p test/output/otel
sudo chmod 777 -R test/output/otel
make test-deps
sleep 3
docker compose -f test/docker-compose.yml logs
- name: install
run: make install
- name: install ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: run tests
run: make test-main FLAGS="--cover --coverprofile=coverage.txt"
- name: upload coverage reselt to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: integration
tests-integration-o11:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: start dependencies
run: |
mkdir -p test/output/otel
sudo chmod 777 -R test/output/otel
make test-deps
sleep 3
docker compose -f test/docker-compose.yml logs
- name: install
run: make install
# - name: add Go bin to path
# run: echo "$HOME/go/bin" >> $GITHUB_PATH
- name: install ginkgo
run: go install github.com/onsi/ginkgo/v2/ginkgo
- name: run tests
run: make test-o11 FLAGS="--cover --coverprofile=coverage.txt"
- name: upload coverage reselt to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
flags: integration-o11