Add GitHub action for linting (#8)

This commit is contained in:
Lipis 2020-03-12 00:25:07 +02:00 committed by GitHub
parent 123b2ea4e0
commit 19fec67ceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 1 deletions

20
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Lint
on: pull_request
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup Node.js 12.x
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Install and lint
run: |
yarn
yarn lint

View File

@ -30,11 +30,12 @@
"deploy": "gcloud app deploy --project=excalidraw-room",
"fix": "yarn prettier --write",
"gcp-build": "tsc -p .",
"lint": "yarn prettier --list-different",
"prepare": "yarn gcp-build",
"pretest": "yarn gcp-build",
"prettier": "prettier \"**/*.{ts,md,json,yaml,yml}\"",
"start": "node ./index.js",
"test": "yarn prettier --list-different"
"test": "yarn lint"
},
"version": "1.0.0"
}