-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 927 Bytes
/
test.yml
File metadata and controls
37 lines (36 loc) · 927 Bytes
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
name: Test
on:
push:
branches:
- "*"
jobs:
testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: actions/cache@v3
with:
path: |
~/.npm
**/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-node-
- name: Cache cypress
id: cache-cypress
uses: actions/cache@v3
with:
path: '~/.cache/Cypress'
key: ${{ runner.os }}-cache-cypress-${{ env.node-version }}
- name: Install deps
run: yarn
- name: Install cypress
if: steps.cache-cypress.outputs.cache-hit != 'true'
run: npx cypress install
- name: Run tests
run: yarn test:ci
- name: Run build
run: yarn build