Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#339 seperate regression test workflow per env #386

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading