-
Notifications
You must be signed in to change notification settings - Fork 34
39 lines (31 loc) · 833 Bytes
/
tests.yml
File metadata and controls
39 lines (31 loc) · 833 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
38
39
name: Tests
on: [push]
jobs:
testing:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version: [6.x, 8.x, 10.x, 12.x, 13.x]
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm i --no-audit --prefer-offline
- name: Run Tests
run: npm test
- name: Submit Coverage
run: npm run coveralls
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}
- name: Upload Coverage Report
uses: actions/upload-artifact@v1
with:
name: coverage
path: coverage