Skip to content

Commit 3dad374

Browse files
authored
Update test input parameters in azure-deploy workflow (#940)
1 parent 935b393 commit 3dad374

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/test-azure-deploy.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ permissions:
1212
on:
1313
workflow_dispatch:
1414
inputs:
15-
group-name:
16-
description: 'Deploy test group name to run (e.g. static-web-apps-deploy). If empty, all groups will be run.'
15+
test-pattern:
16+
description: 'Optional: Filter tests by name or describe block (e.g. "creates todo list", "static-web-apps-deploy", "Terraform"). If empty, all tests will be run.'
1717
required: false
1818
type: string
1919
default: ''
@@ -97,10 +97,11 @@ jobs:
9797
GH_HEAD_SHA: ${{ github.sha }}
9898
DEBUG: ${{ inputs.debug && '1' || '' }}
9999
run: |
100-
if [ -n "${{ inputs.group-name }}" ]; then
101-
TEST_ARGS="--testNamePattern=${{ inputs.group-name }}"
100+
if [ -n "${{ inputs.test-pattern }}" ]; then
101+
npm run test:integration -- --testPathPattern="azure-deploy" --testNamePattern="${{ inputs.test-pattern }}"
102+
else
103+
npm run test:integration -- --testPathPattern="azure-deploy"
102104
fi
103-
npm run test:integration -- --testPathPattern="azure-deploy" $TEST_ARGS
104105
continue-on-error: true
105106

106107
- name: Generate report

0 commit comments

Comments
 (0)