|
|
|
@ -452,6 +452,9 @@ jobs:
|
|
|
|
|
needs: |
|
|
|
|
- setup |
|
|
|
|
- dev-build |
|
|
|
|
permissions: |
|
|
|
|
id-token: write # NOTE: this permission is explicitly required for Vault auth. |
|
|
|
|
contents: read |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
@ -527,10 +530,35 @@ jobs:
|
|
|
|
|
COMPOSE_INTERACTIVE_NO_CLI: 1 |
|
|
|
|
# tput complains if this isn't set to something. |
|
|
|
|
TERM: ansi |
|
|
|
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 |
|
|
|
|
# NOTE: ENT specific step as we store secrets in Vault. |
|
|
|
|
- name: Authenticate to Vault |
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }} |
|
|
|
|
id: vault-auth |
|
|
|
|
run: vault-auth |
|
|
|
|
|
|
|
|
|
# NOTE: ENT specific step as we store secrets in Vault. |
|
|
|
|
- name: Fetch Secrets |
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }} |
|
|
|
|
id: secrets |
|
|
|
|
uses: hashicorp/vault-action@v2.5.0 |
|
|
|
|
with: |
|
|
|
|
name: ${{ env.TEST_RESULTS_ARTIFACT_NAME }} |
|
|
|
|
path: ${{ env.TEST_RESULTS_DIR }} |
|
|
|
|
url: ${{ steps.vault-auth.outputs.addr }} |
|
|
|
|
caCertificate: ${{ steps.vault-auth.outputs.ca_certificate }} |
|
|
|
|
token: ${{ steps.vault-auth.outputs.token }} |
|
|
|
|
secrets: | |
|
|
|
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY; |
|
|
|
|
|
|
|
|
|
- name: prepare datadog-ci |
|
|
|
|
if: ${{ !endsWith(github.repository, '-enterprise') }} |
|
|
|
|
run: | |
|
|
|
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" |
|
|
|
|
chmod +x /usr/local/bin/datadog-ci |
|
|
|
|
|
|
|
|
|
- name: upload coverage |
|
|
|
|
env: |
|
|
|
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}" |
|
|
|
|
DD_ENV: ci |
|
|
|
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" $TEST_RESULTS_DIR/results.xml |
|
|
|
|
|
|
|
|
|
test-integrations-success: |
|
|
|
|
needs: |
|
|
|
|