-
Notifications
You must be signed in to change notification settings - Fork 23
41 lines (33 loc) · 928 Bytes
/
pr.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
name: Build & Test
on:
pull_request:
types: [opened, synchronize]
branches: master
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install
run: npm ci
- name: Check types
run: npm run types
- name: Test unit
run: npm run test:unit
- name: Build Demo
run: npm run build:demo
- name: Run E2E Test
uses: cypress-io/github-action@v5
with:
start: npm run preview
record: true
browser: chrome
env:
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}