-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (33 loc) · 1.17 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
# inpired by https://github.com/cypress-io/cypress-and-jest-typescript-example
name: e2e
on: [push, pull_request]
jobs:
e2e:
env:
GRAPHQL_API_TOKEN: ${{secrets.GRAPHQL_API_TOKEN}}
runs-on: ubuntu-20.04
steps:
- name: Setup Node 🥣
uses: actions/setup-node@v2
with:
node-version: 14
- run: node -v
- run: npm -v
- name: Checkout 🛎
uses: actions/checkout@v2
- name: Install and run Cypress tests 🌲
uses: cypress-io/github-action@v2
with:
build: npm run build
start: npm start
wait-on: "http://localhost:3000"
record: true
env:
CYPRESS_PROJECT_ID: ${{ secrets.CYPRESS_PROJECT_ID }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly (automatically generated by workflow)
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_IS_CI: true
# some tests only fail on CI and run correctly in local ...
CYPRESS_SKIP_FAILING_TESTS_ON_CI: true