forked from svrnm/DemoMonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 844 Bytes
/
test.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
name: Tests for PR
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: 'Run tests'
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: '16'
- uses: actions/checkout@v2
- name: 'Cache node_modules'
uses: actions/cache@v2
with:
path: |
node_modules
package-lock.json
key: ${{ runner.os }}-node-v16-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-v16-
- name: Install Dependencies
run: npm install
- name: Run Build
run: npm run build
- name: Run Non-Ui Tests
run: npm run test-no-ui