forked from cds-snc/notification-api
-
Notifications
You must be signed in to change notification settings - Fork 9
34 lines (30 loc) · 964 Bytes
/
run-regression.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Call Notification API QA Regression Tests
on:
workflow_call:
inputs:
environment:
description: 'Notification-api deployment environment to test (dev|perf|staging)'
required: true
type: string
workflow_dispatch:
inputs:
environment:
description: 'Notification-api deployment environment to test (dev|perf|staging)'
required: true
type: string
jobs:
trigger-regression-tests:
name: "Run regression for ${{ inputs.environment }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Trigger Regression Workflow
uses: actions/github-script@v7
env:
ENVIRONMENT: ${{ inputs.environment }}
with:
github-token: ${{ secrets.DISPATCH_PAT }}
script: |
const path = '.github/scripts/trigger-regression.js';
const triggerAndWait = require(path);
triggerAndWait({github, context, core});