2020-05-07 22:02:08 +02:00
|
|
|
# This workflow will do a clean install of node dependencies and check the code style
|
|
|
|
|
2020-05-10 22:20:04 +02:00
|
|
|
name: Linting and testing code CI
|
2020-05-07 22:02:08 +02:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Use Node.js 12.x
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: 12.x
|
|
|
|
- run: npm ci
|
|
|
|
- run: npm run style
|
2020-05-10 22:20:04 +02:00
|
|
|
- run: npm run test
|