Skip to content

Commit

Permalink
include what env the tests are running on
Browse files Browse the repository at this point in the history
  • Loading branch information
goulter committed Jan 15, 2025
1 parent ff1d44a commit 6073119
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/scheduled-idp-web-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,22 @@ jobs:
env:
storyboard_url: https://identity-artifact.iamdev.s.uw.edu/
workflow_link: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
outputs:
idp-env: ${{ steps.configure.outputs.idp-env }}

- id: configure
run:
env:
INPUT_TARGET_IDP_ENV: ${{ matrix.idp_env }}

- uses: UWIT-IAM/actions/[email protected]
with:
gcloud-token: ${{ secrets.TEST_RUNNER_GOOGLE_TOKEN }}

- name: Notify Teams of Test Run Start
env:
IDP_ENV: ${{ steps.configure.outputs.idp-env }}
INPUT_REASON: ${{ steps.configure.outputs.input-reason }}
IDP_ENV: ${{ env.INPUT_TARGET_IDP_ENV }}
INPUT_REASON: ${{ steps.config.outputs.input-reason }}
run: |
curl -H "Content-Type: application/json" \
-d '{
Expand All @@ -115,6 +121,7 @@ jobs:
{
"type": "FactSet",
"facts": [
{"title": "IdP Web Tests running on ", "value": "'${{ env.IDP_ENV }}'"},
{"title": "Reason for Test Run", "value": "GlenHardcodedReasonStart"}
]
}
Expand Down Expand Up @@ -162,9 +169,9 @@ jobs:
- name: Notify Teams of Test Run Completion
env:
TEST_STATUS: ${{ steps.run-tests.outputs.test-status }}
REPORT_URL: ${{ steps.configure.outputs.report-url }}
INPUT_REASON: ${{ steps.configure.outputs.input-reason }}
IDP_ENV: ${{ steps.configure.outputs.idp-env }}
REPORT_URL: ${{ steps.config.outputs.report-url }}
INPUT_REASON: ${{ steps.config.outputs.input-reason }}
IDP_ENV: ${{ env.idp_env }}
if: always()
run: |
# Set the message body dynamically based on TEST_STATUS
Expand Down Expand Up @@ -201,6 +208,7 @@ jobs:
{
"type": "FactSet",
"facts": [
{"title": "IdP Web Tests ran on ", "value": "'${{ env.IDP_ENV }}'"},
{"title": "Reason for Test Run", "value": "GlenHardcodedReason"}
]
}
Expand Down

0 comments on commit 6073119

Please sign in to comment.