Skip to content

Commit

Permalink
#339 seperate regression test workflow per env (#386)
Browse files Browse the repository at this point in the history
🎈
  • Loading branch information
acn-sbuad authored Jan 24, 2024
1 parent bb99442 commit 57e14c5
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/regression-test-AT22.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Regression Test - AT22

on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 1-5'

jobs:
at22:
uses: ./.github/workflows/regression-test-ATX.yml
with:
environment: AT22
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/regression-test-AT23.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Regression Test - AT23

on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 1-5'

jobs:
at22:
uses: ./.github/workflows/regression-test-ATX.yml
with:
environment: AT23
secrets: inherit
13 changes: 13 additions & 0 deletions .github/workflows/regression-test-AT24.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Regression Test - AT24

on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 1-5'

jobs:
at22:
uses: ./.github/workflows/regression-test-ATX.yml
with:
environment: AT24
secrets: inherit
28 changes: 18 additions & 10 deletions .github/workflows/regression-test-ATX.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
name: Regression test - AT


on:
workflow_dispatch:
schedule:
- cron: '0 12 * * 1-5'
workflow_call:
inputs:
environment:
required: true
type: string
secrets:
TOKENGENERATOR_USERNAME:
required: true
TOKENGENERATOR_USERPASSWORD:
required: true
AUTOMATEDTEST_EMAILRECIPIENT:
required: true
SLACK_WEBHOOK_URL_TEST:
required: true

jobs:
test:
strategy:
fail-fast: false
matrix:
environment: [AT21, AT22, AT23, AT24]
environment: ${{ matrix.environment }}
regression-tests:
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v4
- name: Run email notification order regression tests
Expand All @@ -23,7 +31,7 @@ jobs:
- name: Build failure report
if: failure()
run: |
report=":warning: Notifications regression test failure in ${{ matrix.environment }} :warning: \n"
report=":warning: Notifications regression test failure in ${{ inputs.environment }} :warning: \n"
report+="\n Workflow available here: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
echo "stepreport="$report >> $GITHUB_ENV
- name: Report failure to Slack
Expand Down

0 comments on commit 57e14c5

Please sign in to comment.