Files
starter-workflows/ci/node.js.yml
T
Richard Lau 595b40510a Remove End-of-Life Node.js 8.x
Node.js 8 went End-of-Life at the end of 2019 and should not be used in new workflows.
2020-01-12 08:33:58 +00:00

25 lines
460 B
YAML

name: Node.js CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm run build --if-present
- run: npm test
env:
CI: true