-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 938 Bytes
/
run-e2e-tests.yaml
File metadata and controls
29 lines (28 loc) · 938 Bytes
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
name: Cypress E2E Tests
on: push
jobs:
cypress-run:
# If you want this job to run on your fork, remove the below "if" line.
# You will need to "fix" the tests as they are specific to Adobe Commmerce's
# demo backend.
if: github.repository == 'hlxsites/aem-boilerplate-commerce'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install root dependencies
run: npm ci
- name: Start server in the background
run: npm start &
- name: Install Cypress and run tests
uses: cypress-io/github-action@v6
with:
working-directory: cypress
browser: chrome
wait-on: 'http://localhost:3000'
config: baseUrl=http://localhost:3000
- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
if-no-files-found: ignore