Skip to content

Commit 99a8162

Browse files
authored
make test-e2e re-usable (#106)
1 parent a5aa1d3 commit 99a8162

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/test-e2e.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ name: Run next.js tests
22

33
on:
44
workflow_dispatch:
5+
workflow_call:
56
pull_request:
67
types: [opened, synchronize, reopened, labeled]
78

@@ -25,7 +26,7 @@ env:
2526
jobs:
2627
e2e:
2728
if:
28-
${{ github.event_name == 'workflow_dispatch' ||
29+
${{ github.event_name == ('workflow_dispatch' || 'workflow_call') ||
2930
contains(github.event.pull_request.labels.*.name, 'run-e2e-tests') }}
3031
name: test e2e
3132
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)