28 lines
592 B
YAML
28 lines
592 B
YAML
name: Test template output
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
test:
|
|
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
strategy:
|
|
matrix:
|
|
node_version: [9, 10, 11, 12]
|
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Use Node.js ${{ matrix.node_version }}
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node_version: ${{ matrix.node_version }}
|
|
|
|
- name: npm install & test
|
|
run: |
|
|
npm install
|
|
npm test
|
|
env:
|
|
CI: true
|