fmt + lint in ci

This commit is contained in:
Luca Casonato 2021-04-10 02:22:53 +02:00
parent 5ac0f854f6
commit 04f5bd3be8
No known key found for this signature in database
GPG Key ID: 789878CF6382A84F
2 changed files with 10 additions and 2 deletions

View File

@ -12,7 +12,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
deno: [1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e]
deno:
[1.x, "1.8.2", canary, ~1.7, e7b7129b7a92b7500ded88f8f5baa25a7f59e56e]
steps:
- uses: actions/checkout@v2
@ -24,3 +25,9 @@ jobs:
- name: Test Deno
run: deno run https://deno.land/std/examples/welcome.ts
- name: Format
run: npm run fmt:check
- name: Lint
run: npm run lint

View File

@ -6,7 +6,8 @@
"license": "MIT",
"scripts": {
"lint": "deno lint --unstable --ignore=node_modules",
"fmt": "deno fmt --ignore=node_modules"
"fmt": "deno fmt --ignore=node_modules",
"fmt:check": "deno fmt --ignore=node_modules --check"
},
"dependencies": {
"@actions/core": "^1.2.6",