-
Notifications
You must be signed in to change notification settings - Fork 8
41 lines (39 loc) · 1.11 KB
/
e2e.yml
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
name: E2E Tests
on:
pull_request:
# Cancel previous workflow run groups that have not completed.
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
env:
CYPRESS_LICENSE_KEY: ${{ secrets.CYPRESS_LICENSE_KEY }}
jobs:
e2e:
name: E2E Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/hydrogen # 18.x
cache: "yarn"
- name: Build
run: |
yarn install --frozen-lockfile
composer install --no-dev --prefer-dist --no-progress --no-suggest
yarn run build
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: "npm"
- name: Run E2E
run: npm run ci:e2e
- name: Upload artifacts on failure
if: failure()
uses: actions/upload-artifact@v3
with:
name: e2e-artifacts
path: ./e2e-tests/artifacts
retention-days: 1