31 lines
670 B
YAML
31 lines
670 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: [10, 11, 12, 13]
|
|
# os: [ubuntu-latest, macOS-latest]
|
|
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 -v
|
|
node -v
|
|
npm install --unsafe-perm
|
|
npm test
|
|
env:
|
|
CI: true
|