-
Notifications
You must be signed in to change notification settings - Fork 16
64 lines (49 loc) · 1.21 KB
/
test.yml
File metadata and controls
64 lines (49 loc) · 1.21 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Test
on:
push:
branches:
- default
- '!gh-pages'
pull_request:
branches:
- default
jobs:
lint:
name: Lint+Test
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip-ci')"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache
uses: actions/cache@v3
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Setup
uses: actions/setup-node@v3
with:
node-version: 12
- name: Install
run: npm install
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Build Browser
run: npm run browser:build
- name: Test Setup
run: mkdir -p test-results
- name: Test Node
run: npm run test:node
- name: Test Browser
run: npm run test:browser
- name: Results
uses: actions/upload-artifact@v3
with:
name: Results
path: test-results