fix(test): otel collector export to file slowly make tracing failed #1164
Workflow file for this run
This file contains hidden or 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: 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: runs tests | |
| run: | | |
| make test-unit FLAGS=-coverprofile=coverage.txt | |
| cat coverage.txt | |
| - name: uploads coverage reselt | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| flags: unit | |
| tests-integration-main: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: starts 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: installs webhookx | |
| run: make install | |
| - name: installs ginkgo | |
| run: go install github.com/onsi/ginkgo/v2/ginkgo | |
| - name: run tests | |
| run: | | |
| make test-main FLAGS="-coverpkg=github.com/webhookx-io/webhookx/... --cover --coverprofile=coverage.txt" | |
| cat coverage.txt | |
| - name: upload coverage reselt | |
| 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: starts 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: installs webhookx | |
| run: make install | |
| - name: install ginkgo | |
| run: go install github.com/onsi/ginkgo/v2/ginkgo | |
| - name: run tests | |
| run: | | |
| make test-o11 FLAGS="-coverpkg=github.com/webhookx-io/webhookx/... --cover --coverprofile=coverage.txt" | |
| cat coverage.txt | |
| - name: upload coverage reselt | |
| uses: codecov/codecov-action@v4 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| flags: integration-o11 |