fmt + lint in ci
This commit is contained in:
parent
5ac0f854f6
commit
04f5bd3be8
|
@ -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
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue