Collector Tests #106
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: Collector Tests | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| # Run every day at 3:15 AM. | |
| - cron: '15 3 * * *' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| issues: write | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| - name: Set up environment | |
| uses: ./.github/workflows/env | |
| with: | |
| skip_rust: true | |
| - name: Cache coredump modules | |
| uses: actions/cache@0400d5f644dc74513175e3cd8d07132dd4860809 # v4.2.4 | |
| with: | |
| path: tools/coredump/modulecache | |
| key: coredumps-collector-${{ hashFiles('tools/coredump/testdata/*/*.json') }} | |
| restore-keys: | | |
| coredumps-collector | |
| coredumps- | |
| - name: Clone Collector | |
| run: | | |
| collector_path=/tmp/opentelemetry-collector | |
| git clone --depth=1 https://github.com/open-telemetry/opentelemetry-collector.git $collector_path | |
| - name: Setup replace statement | |
| run: | | |
| COLLECTOR_PATH=/tmp/opentelemetry-collector ./support/local-collector.sh | |
| go mod tidy | |
| - name: Tests | |
| run: make test-junit | |
| - name: Generate Issue | |
| if: failure() | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| go install go.opentelemetry.io/build-tools/issuegenerator@latest | |
| issuegenerator -path /tmp/testresults |