-
-
Notifications
You must be signed in to change notification settings - Fork 24
44 lines (37 loc) · 978 Bytes
/
pr-checks.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
44
name: PR Checks
on:
push:
branches:
- main
pull_request:
branches:
- "**"
jobs:
pr-checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache node_modules
id: node-cache
uses: actions/cache@v3
with:
path: node_modules
key: node-modules-${{ hashFiles('package-lock.json') }}
- name: Cache cypress binary
id: cypress-cache
uses: actions/cache@v3
with:
path: /home/runner/.cache/Cypress
key: cypress-${{ hashFiles('package-lock.json') }}
- name: Install node_modules
if: steps.node-cache.outputs.cache-hit != 'true'
run: npm install
- name: Install cypress
if: steps.cypress-cache.outputs.cache-hit != 'true'
run: npx cypress install
- name: Run checks
run: |
npm run format
npm run lint
npm run test
npm run build