-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.22 KB
/
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
37
38
39
40
41
42
43
44
name: TEST AND BUILD
on:
workflow_dispatch:
workflow_call:
pull_request:
branches:
- 'dev'
push:
branches:
- 'dev'
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 16
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- name: Test with Node ${{matrix.node-version}}
uses: actions/setup-node@v3
with:
node-version: ${{matrix.node-version}}
cache: 'npm'
- run: |
npm ci
npm run build
npm run test
- name: Upload screenshot artifact
uses: actions/upload-artifact@v3
if: failure()
with:
name: screenshots
path: ./test/screenshots/Chromium/failed
- name: Upload build artifact
if: matrix.node-version == '16.x' && matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
with:
name: distribution
path: ./dist