Skip to content

Commit 54b7553

Browse files
committed
fix: thread grep invert through to list tests action
1 parent 4501ce8 commit 54b7553

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.github/workflows/android-regression.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
RUN_PRO_TESTS:
3737
description: 'include Session Pro tests in this run'
3838
required: false
39-
default: false
39+
default: true
4040
type: boolean
4141

4242
ALLURE_ENABLED:
@@ -198,6 +198,7 @@ jobs:
198198
with:
199199
PLATFORM: ${{ env.PLATFORM }}
200200
RISK: ${{ github.event.inputs.RISK }}
201+
PRO_GREP_INVERT: ${{ env.PRO_GREP_INVERT }}
201202

202203
- name: Run the 1-devices tests ​​with 4 workers
203204
continue-on-error: true

.github/workflows/ios-regression.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
with:
136136
PLATFORM: ${{ env.PLATFORM }}
137137
RISK: ${{ github.event.inputs.RISK }}
138+
PRO_GREP_INVERT: ${{ env.PRO_GREP_INVERT }}
138139

139140
- name: Run the iOS tests​​ (all device counts)
140141
env:

github/actions/list-tests/action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ inputs:
1010
RISK:
1111
description: "Risk level to filter tests 'high-risk'|'medium-risk'|'low-risk'|''"
1212
required: false
13+
PRO_GREP_INVERT:
14+
description: 'Optional --grep-invert flag to exclude @pro tests'
15+
required: false
16+
default: ''
1317

1418
runs:
1519
using: 'composite'
@@ -18,4 +22,4 @@ runs:
1822
shell: bash
1923
run: |
2024
pwd
21-
npx playwright test --list --reporter list --grep "(?=.*@${{ inputs.PLATFORM }})(?=.*@${{ inputs.RISK }})"
25+
npx playwright test --list --reporter list --grep "(?=.*@${{ inputs.PLATFORM }})(?=.*@${{ inputs.RISK }})" ${{ inputs.PRO_GREP_INVERT }}

0 commit comments

Comments
 (0)