31
.github/workflows/nodejs.yml
vendored
Normal file
31
.github/workflows/nodejs.yml
vendored
Normal 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: build
|
||||||
|
run: |
|
||||||
|
npm run build --if-present
|
||||||
|
- name: eslint
|
||||||
|
run: |
|
||||||
|
npm run lint
|
||||||
|
env:
|
||||||
|
CI: true
|
||||||
|
|
||||||
Reference in New Issue
Block a user