Start enabling Github Actions

This commit is contained in:
Matteo Pagliazzi 2019-10-19 16:03:01 +02:00 committed by GitHub
parent a78dc7f40d
commit 102cca36e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

41
.github/workflows/nodejs.yml vendored Normal file
View file

@ -0,0 +1,41 @@
name: Node CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
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, build, and test
run: |
npm ci
env:
CI: true
lint:
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
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 run lint
run: |
npm run lint