mirror of https://github.com/hashicorp/consul
Backport of ci: upload test results to DataDog on test failure into release/1.17.x (#19964)
backport of commit 0085e75996
Co-authored-by: Michael Zalimeni <michael.zalimeni@hashicorp.com>
pull/19977/head
parent
ad4851c973
commit
f5ab81e124
|
@ -152,13 +152,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -169,14 +169,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -260,13 +260,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -277,14 +277,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -155,13 +155,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -172,14 +172,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -281,13 +281,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -298,14 +298,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -152,13 +152,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -169,14 +169,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -278,13 +278,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -295,14 +295,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -461,13 +461,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -478,14 +478,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -135,13 +135,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -152,27 +152,30 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: ${{ env.DATADOG_API_KEY}}
|
if: ${{ !cancelled() && env.DATADOG_API_KEY}}
|
||||||
env:
|
env:
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
||||||
|
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: ${{env.TEST_RESULTS}}
|
path: ${{env.TEST_RESULTS}}
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: jsonfile
|
name: jsonfile
|
||||||
path: /tmp/jsonfile
|
path: /tmp/jsonfile
|
||||||
- name: "Re-run fails report"
|
- name: "Re-run fails report"
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
run: |
|
run: |
|
||||||
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
|
|
|
@ -114,13 +114,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -131,27 +131,30 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: ${{ env.DATADOG_API_KEY}}
|
if: ${{ !cancelled() && env.DATADOG_API_KEY}}
|
||||||
env:
|
env:
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
run: datadog-ci junit upload --service "$GITHUB_REPOSITORY" ${{env.TEST_RESULTS}}/gotestsum-report.xml
|
||||||
|
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: test-results
|
name: test-results
|
||||||
path: ${{env.TEST_RESULTS}}
|
path: ${{env.TEST_RESULTS}}
|
||||||
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
with:
|
with:
|
||||||
name: jsonfile
|
name: jsonfile
|
||||||
path: /tmp/jsonfile
|
path: /tmp/jsonfile
|
||||||
- name: "Re-run fails report"
|
- name: "Re-run fails report"
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
run: |
|
run: |
|
||||||
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
.github/scripts/rerun_fails_report.sh /tmp/gotestsum-rerun-fails
|
||||||
- name: Notify Slack
|
- name: Notify Slack
|
||||||
|
|
|
@ -1165,13 +1165,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -1183,14 +1183,14 @@ jobs:
|
||||||
|
|
||||||
- name: Prepare datadog-ci
|
- name: Prepare datadog-ci
|
||||||
shell: bash
|
shell: bash
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/download/v2.17.2/datadog-ci_win-x64.exe" --output "C:/datadog-ci"
|
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/download/v2.17.2/datadog-ci_win-x64.exe" --output "C:/datadog-ci"
|
||||||
icacls C:/datadog-ci /grant:rx Everyone:RX
|
icacls C:/datadog-ci /grant:rx Everyone:RX
|
||||||
|
|
||||||
- name: Upload coverage
|
- name: Upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
|
@ -120,13 +120,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -137,14 +137,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -201,13 +201,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -218,14 +218,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -233,7 +233,7 @@ jobs:
|
||||||
|
|
||||||
- name: upload leader coverage
|
- name: upload leader coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -241,7 +241,7 @@ jobs:
|
||||||
|
|
||||||
- name: upload agent coverage
|
- name: upload agent coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -345,13 +345,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -362,14 +362,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -458,13 +458,13 @@ jobs:
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -475,14 +475,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
@ -541,13 +541,13 @@ jobs:
|
||||||
TERM: ansi
|
TERM: ansi
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Authenticate to Vault
|
- name: Authenticate to Vault
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: vault-auth
|
id: vault-auth
|
||||||
run: vault-auth
|
run: vault-auth
|
||||||
|
|
||||||
# NOTE: ENT specific step as we store secrets in Vault.
|
# NOTE: ENT specific step as we store secrets in Vault.
|
||||||
- name: Fetch Secrets
|
- name: Fetch Secrets
|
||||||
if: ${{ endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && endsWith(github.repository, '-enterprise') }}
|
||||||
id: secrets
|
id: secrets
|
||||||
uses: hashicorp/vault-action@v2.5.0
|
uses: hashicorp/vault-action@v2.5.0
|
||||||
with:
|
with:
|
||||||
|
@ -558,14 +558,14 @@ jobs:
|
||||||
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
kv/data/github/${{ github.repository }}/datadog apikey | DATADOG_API_KEY;
|
||||||
|
|
||||||
- name: prepare datadog-ci
|
- name: prepare datadog-ci
|
||||||
if: ${{ !endsWith(github.repository, '-enterprise') }}
|
if: ${{ !cancelled() && !endsWith(github.repository, '-enterprise') }}
|
||||||
run: |
|
run: |
|
||||||
curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
|
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
|
chmod +x /usr/local/bin/datadog-ci
|
||||||
|
|
||||||
- name: upload coverage
|
- name: upload coverage
|
||||||
# do not run on forks
|
# do not run on forks
|
||||||
if: github.event.pull_request.head.repo.full_name == github.repository
|
if: ${{ !cancelled() && github.event.pull_request.head.repo.full_name == github.repository }}
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
DATADOG_API_KEY: "${{ endsWith(github.repository, '-enterprise') && env.DATADOG_API_KEY || secrets.DATADOG_API_KEY }}"
|
||||||
DD_ENV: ci
|
DD_ENV: ci
|
||||||
|
|
Loading…
Reference in New Issue