chore(github): add node build action

This commit is contained in:
Daniel Sogl 2019-10-23 15:44:35 +02:00 committed by GitHub
parent 409a985142
commit fdd38b97b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

31
.github/workflows/nodejs.yml vendored Normal file
View File

@ -0,0 +1,31 @@
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: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Build
run: npm run build
- name: Test
run: npm run test:ci
- name: Readmes
run: npm run readmes
env:
CI: true