Merge branch 'main' into dependabot/github_actions/actions-minor-9b82… #17
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: Push Event Tests | |
| on: | |
| push: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test-typescript: | |
| name: TypeScript Tests | |
| runs-on: ubuntu-latest | |
| services: | |
| # Anything is fine as long as it accepts metrics and traces with OTLP because the tests does not check stored data. | |
| collector: | |
| image: otel/opentelemetry-collector-contrib:0.115.1 | |
| ports: | |
| - 4318:4318 | |
| steps: | |
| - name: Checkout | |
| id: checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| id: setup-node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version-file: .node-version | |
| cache: npm | |
| - name: Install Dependencies | |
| id: npm-ci | |
| run: npm ci | |
| - name: Check Format | |
| id: npm-format-check | |
| run: npm run format:check | |
| - name: Lint | |
| id: npm-lint | |
| run: npm run lint | |
| - name: Test | |
| id: npm-test | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: npm run test | |
| example-app: | |
| name: Example Application Pipeline | |
| strategy: | |
| matrix: | |
| fixed-sleep: [1, 2] | |
| random-sleep: [1, 2] | |
| uses: ./.github/workflows/example-app-workflow.yml | |
| with: | |
| fixed-sleep: ${{ matrix.fixed-sleep }} | |
| random-sleep: ${{ matrix.random-sleep }} | |
| # Test the action for push/pull_request events using the reusable workflow | |
| test-action: | |
| needs: | |
| - test-typescript | |
| - example-app | |
| name: Test Action (Push Event) | |
| uses: ./.github/workflows/validate-action-output.yml | |
| with: | |
| test-data-directory: push-event-tests | |
| artifact-name: collector-logs-push-event-tests | |
| retention-days: 5 | |
| secrets: inherit |