From ce3375d55add8076579d8457bfd48e428f7fdf68 Mon Sep 17 00:00:00 2001 From: Bernardo Guerreiro Date: Wed, 24 Jan 2024 00:19:01 +0000 Subject: [PATCH] refactor: make sure all flows send dd --- .github/workflows/deploy-prod.yaml | 1 + .github/workflows/deploy-staging.yaml | 1 + .github/workflows/pull_request.yaml | 1 + .github/workflows/run-performance-test.yaml | 16 ++++++++-------- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy-prod.yaml b/.github/workflows/deploy-prod.yaml index 0d5112c..d5712f6 100644 --- a/.github/workflows/deploy-prod.yaml +++ b/.github/workflows/deploy-prod.yaml @@ -14,5 +14,6 @@ jobs: contents: read secrets: AWS_DEPLOYER_ROLE: ${{ secrets.AWS_DEPLOYER_ROLE }} + DD_API_KEY: ${{ secrets.DD_API_KEY }} with: ENVIRONMENT: prod \ No newline at end of file diff --git a/.github/workflows/deploy-staging.yaml b/.github/workflows/deploy-staging.yaml index aac814c..9d66ef7 100644 --- a/.github/workflows/deploy-staging.yaml +++ b/.github/workflows/deploy-staging.yaml @@ -14,5 +14,6 @@ jobs: contents: read secrets: AWS_DEPLOYER_ROLE: ${{ secrets.AWS_DEPLOYER_ROLE }} + DD_API_KEY: ${{ secrets.DD_API_KEY }} with: ENVIRONMENT: staging \ No newline at end of file diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 5652671..878e0df 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -24,6 +24,7 @@ jobs: contents: read secrets: AWS_DEPLOYER_ROLE: ${{ secrets.AWS_DEPLOYER_ROLE }} + DD_API_KEY: ${{ secrets.DD_API_KEY }} with: ENVIRONMENT: ${{ github.actor }}-${{ github.event.pull_request.number }} SHOULD_SEED_DB: true diff --git a/.github/workflows/run-performance-test.yaml b/.github/workflows/run-performance-test.yaml index 9401eb9..1dc11a8 100644 --- a/.github/workflows/run-performance-test.yaml +++ b/.github/workflows/run-performance-test.yaml @@ -8,10 +8,6 @@ on: required: true options: ['staging', 'prod', 'custom'] type: choice - SERVICE_URL: - description: 'Override the service URL' - required: false - type: string TEST_TYPE: description: 'Type of test to run' required: true @@ -21,16 +17,16 @@ on: description: 'Version of the application under test' required: true type: string + SERVICE_URL: + description: 'Override the service URL' + required: false + type: string workflow_call: inputs: ENVIRONMENT: description: 'Environment to run the tests against' required: true type: string - SERVICE_URL: - description: 'Override the service URL' - required: false - type: string TEST_TYPE: description: 'Type of test to run' required: true @@ -39,6 +35,10 @@ on: description: 'Version of the application under test' required: true type: string + SERVICE_URL: + description: 'Override the service URL' + required: false + type: string secrets: DD_API_KEY: description: 'Datadog API key'