-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 972 Bytes
/
Copy pathe2e-tests.yml
File metadata and controls
36 lines (34 loc) · 972 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
30
31
32
33
34
35
36
name: E2E Tests
on:
push:
paths-ignore:
- "**/README.md"
jobs:
cypress-run:
environment: testing-env
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: npm i
- name: Build App
env:
REACT_APP_FIREBASE_TEST_CONFIG: "${{ secrets.REACT_APP_FIREBASE_TEST_CONFIG }}"
run: npm run build:testEnv
- name: Start server
env:
REACT_APP_FIREBASE_TEST_CONFIG: "${{ secrets.REACT_APP_FIREBASE_TEST_CONFIG }}"
run: npm run start:testEnv &
- name: Cypress run
uses: cypress-io/github-action@v2
with:
install: false
start: echo "STARTED"
wait-on: "http://localhost:3000"
- name: Save screenshots on failure
uses: actions/upload-artifact@v2
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots