|
|
@ -452,6 +452,9 @@ jobs: |
|
|
|
needs: |
|
|
|
needs: |
|
|
|
- setup |
|
|
|
- setup |
|
|
|
- dev-build |
|
|
|
- dev-build |
|
|
|
|
|
|
|
permissions: |
|
|
|
|
|
|
|
id-token: write # NOTE: this permission is explicitly required for Vault auth. |
|
|
|
|
|
|
|
contents: read |
|
|
|
strategy: |
|
|
|
strategy: |
|
|
|
fail-fast: false |
|
|
|
fail-fast: false |
|
|
|
matrix: |
|
|
|
matrix: |
|
|
@ -527,10 +530,35 @@ jobs: |
|
|
|
COMPOSE_INTERACTIVE_NO_CLI: 1 |
|
|
|
COMPOSE_INTERACTIVE_NO_CLI: 1 |
|
|
|
# tput complains if this isn't set to something. |
|
|
|
# tput complains if this isn't set to something. |
|
|
|
TERM: ansi |
|
|
|
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: |
|
|
|
with: |
|
|
|
name: ${{ env.TEST_RESULTS_ARTIFACT_NAME }} |
|
|
|
url: ${{ steps.vault-auth.outputs.addr }} |
|
|
|
path: ${{ env.TEST_RESULTS_DIR }} |
|
|
|
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: |
|
|
|
test-integrations-success: |
|
|
|
needs: |
|
|
|
needs: |
|
|
|