mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
27 lines
601 B
YAML
27 lines
601 B
YAML
name: Lint
|
|
on: [push, pull_request]
|
|
jobs:
|
|
lint:
|
|
name: ESLint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install Node v15
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 15
|
|
|
|
- name: Install NPM v6 (v7 is Broken)
|
|
run: npm install -g npm@6
|
|
|
|
- name: Install ESLint v7
|
|
run: npm install -g eslint@7
|
|
|
|
- name: Install ESLint Configs and Plugins
|
|
run: npm install eslint-config-amber eslint-plugin-json
|
|
|
|
- name: Run ESLint
|
|
run: npm test
|