-
Notifications
You must be signed in to change notification settings - Fork 15
47 lines (45 loc) · 1.25 KB
/
_internal-e2e.yaml
File metadata and controls
47 lines (45 loc) · 1.25 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: E2E Test
on:
workflow_dispatch: {}
push:
branches:
- main
paths:
- "_test/demo-package/**"
- ".github/workflows/_internal-e2e.yaml"
- ".github/workflows/e2e.yaml"
- "supported-version/**"
- "!(**/*.md)"
pull_request:
branches:
- main
paths:
- "_test/demo-package/**"
- ".github/workflows/_internal-e2e.yaml"
- ".github/workflows/e2e.yaml"
- "supported-version/**"
- "!(**/*.md)"
jobs:
compute_matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.supported-version.outputs.matrix }}
steps:
- uses: actions/checkout@v4
- uses: ./supported-version
with:
kind: all
id: supported-version
- run: echo ${{ steps.supported-version.outputs.matrix }}
e2e-workflow:
if: ${{ hashFiles('_test/demo-package/**') != '' }}
needs: compute_matrix
uses: ./.github/workflows/e2e.yaml
with:
package_name: mage-os/magento2-demo-package
source_folder: $GITHUB_WORKSPACE/_test/demo-package
matrix: ${{ needs.compute_matrix.outputs.matrix }}
test_command: |
npx playwright test --grep "@setup" --trace on
npx playwright test --grep-invert "@setup" --trace on
fail-fast: false