-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (36 loc) · 1.01 KB
/
cypress-ci.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
name: Cypress Tests
on:
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- develop
jobs:
cypress-run:
runs-on: ubuntu-latest
env:
REACT_APP_API_ROOT: https://planetarycomputer-staging.microsoft.com
CHOKIDAR_USEPOLLING: 1
container: cypress/browsers:node14.19.0-chrome100-ff99-edge
steps:
- name: Checkout
uses: actions/checkout@v3
# Install NPM dependencies, cache them correctly
# and run all Cypress tests
- name: Cypress run
uses: cypress-io/github-action@v4
with:
install-command: npm install
start: npm start
wait-on: http://localhost:3000
wait-on-timeout: 95
browser: chrome
- uses: actions/upload-artifact@v3
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
- uses: actions/upload-artifact@v3
if: always()
with:
name: cypress-videos
path: cypress/videos