-
Notifications
You must be signed in to change notification settings - Fork 640
43 lines (39 loc) · 1.02 KB
/
tests.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
name: Tests
on:
push:
branches:
- '**'
pull_request:
branches:
- master
paths:
- '**/*.js'
- 'package.json'
- '**/*.njk'
- '**/*.yml'
- 'tests/**/*.html'
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node-version: [11.x, 10.x, 8.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/cache@v2
id: cache-node-modules
with:
path: node_modules
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package.json') }}
- run: npm install
if: steps.cache-node-modules.outputs.cache-hit != 'true'
- run: npm test
# Commented out until this action is added in organization settings
# - name: Report coverage
# if: success()
# uses: codecov/codecov-action@v1