[pull] master from DataDog:master #193
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: PR All Windows | |
| # This is a temporary fix to avoid hitting the max 256 jobs per workflow limit | |
| # We will remove this once we have a better solution | |
| on: | |
| pull_request: | |
| paths: | |
| - datadog_checks_base/datadog_checks/** | |
| - datadog_checks_dev/datadog_checks/dev/*.py | |
| - ddev/src/** | |
| - "!agent_requirements.in" | |
| # Also run if we modify the workflow files | |
| - ".github/workflows/pr-all-windows.yml" | |
| - ".github/workflows/test-target.yml" | |
| - ".github/workflows/test-all-windows.yml" | |
| # Also run in the action to install test-target scripts changes | |
| - ".github/actions/setup-test-target-scripts/**" | |
| - ".github/actions/setup-ddev/**" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| test: | |
| uses: ./.github/workflows/test-all-windows.yml | |
| permissions: | |
| # needed for compute-matrix in test-target.yml | |
| contents: read | |
| # needed for dd-sts in test-target.yml | |
| id-token: write | |
| with: | |
| repo: core | |
| # Options | |
| context: "pr" | |
| secrets: inherit | |
| save-event: | |
| needs: | |
| - test | |
| if: success() || failure() | |
| uses: ./.github/workflows/save-event.yml | |
| upload-coverage: | |
| needs: | |
| - test | |
| if: > | |
| !github.event.repository.private && | |
| (success() || failure()) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| # needed for dd-sts | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Get Datadog credentials | |
| id: dd-sts | |
| # Coverage upload is optional; keep non-blocking so fork PRs and OIDC outages don't fail the job | |
| continue-on-error: true | |
| uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 # v1.0.0 | |
| with: | |
| policy: integrations-coverage-api-key | |
| - name: Download all coverage artifacts | |
| uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0 | |
| with: | |
| pattern: coverage-* | |
| path: coverage-reports | |
| merge-multiple: false | |
| - name: Upload coverage to Datadog | |
| if: always() | |
| continue-on-error: true | |
| uses: DataDog/coverage-upload-github-action@6c4bd935248daa6f0ef94e3e6ba71ad5ad079998 # v1.0.3 | |
| with: | |
| api_key: ${{ steps.dd-sts.outputs.api_key }} | |
| files: coverage-reports | |
| format: cobertura |