feat(workflows): add lint code job

This commit is contained in:
r3nanp 2021-02-16 19:05:21 -03:00
parent 0daa6ccd05
commit fd836b82d4

View File

@ -10,8 +10,25 @@ on:
branches: [ master ]
jobs:
build:
code:
name: lint code
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Node.js 12
uses: actions/setup-node@v1
with:
node-version: "12"
- name: Install dependencies
uses: bahmutov/npm-install@v1
- name: Run ESLint
run: npm run lint
build:
runs-on: ubuntu-latest
strategy:
@ -29,3 +46,4 @@ jobs:
- run: npm ci
- run: npm run build --if-present
- run: npm test