-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (39 loc) · 1.05 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: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [14]
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: node --version && npm --version
- run: npm ci
- run: npm run eslint
- name: npm test
run: npm test
env:
DEBUG_TESTS: true
- uses: actions/upload-artifact@v2
if: failure()
with:
name: tmp-images-${{ matrix.os }}-node${{ matrix.node }}
path: .tmp/
- run: npm run updateReadmeHelp && git diff --exit-code
- run: npm run build