-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (37 loc) · 1.09 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
42
43
name: CI
on: [pull_request]
jobs:
build:
name: E2E on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['16.x']
os: [macOS-latest]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install deps and build (with cache)
uses: bahmutov/npm-install@v1
- name: Install deps on example
uses: bahmutov/npm-install@v1
with:
working-directory: ./example
- name: Cypress run
uses: cypress-io/github-action@v2
with:
start: npm run start --prefix example/
wait-on: 'http://localhost:1234'
record: true
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/upload-artifact@v1
# if: always()
# with:
# name: cypress-videos
# path: cypress/videos