Added linting
This commit is contained in:
23
.github/workflows/node-ci.yml
vendored
Normal file
23
.github/workflows/node-ci.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Node.js CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 15.x
|
||||
- run: npm ci
|
||||
- run: npm run lint --if-present
|
||||
- run: npm run build --if-present
|
||||
- run: npm test
|
||||
Reference in New Issue
Block a user