Skip to content

Commit

Permalink
make test-e2e re-usable (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
taty2010 authored Dec 13, 2023
1 parent a5aa1d3 commit 99a8162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Run next.js tests

on:
workflow_dispatch:
workflow_call:
pull_request:
types: [opened, synchronize, reopened, labeled]

Expand All @@ -25,7 +26,7 @@ env:
jobs:
e2e:
if:
${{ github.event_name == 'workflow_dispatch' ||
${{ github.event_name == ('workflow_dispatch' || 'workflow_call') ||
contains(github.event.pull_request.labels.*.name, 'run-e2e-tests') }}
name: test e2e
runs-on: ubuntu-latest
Expand Down

0 comments on commit 99a8162

Please sign in to comment.