ci: add lint workflow (#61)
This commit is contained in:
parent
6a8e91cfe6
commit
e7525b79de
|
@ -0,0 +1,25 @@
|
|||
name: Lint & Test
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
main:
|
||||
name: Lint and test
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: nekowinston/setup-deno@v1
|
||||
|
||||
- name: Check
|
||||
run: deno check **/*.ts
|
||||
|
||||
- name: Lint
|
||||
run: deno lint --compact
|
||||
|
||||
- name: Test
|
||||
run: deno test --doc
|
|
@ -11,5 +11,18 @@
|
|||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"changelog-sections": [
|
||||
{ "type": "feat", "section": "Features" },
|
||||
{ "type": "fix", "section": "Bug Fixes" },
|
||||
{ "type": "perf", "section": "Performance Improvements" },
|
||||
{ "type": "revert", "section": "Reverts" },
|
||||
{ "type": "docs", "section": "Documentation" },
|
||||
{ "type": "build", "section": "Build system & distribution" },
|
||||
{ "type": "ci", "section": "Continuous Integration", "hidden": true },
|
||||
{ "type": "style", "section": "Code Style", "hidden": true },
|
||||
{ "type": "refactor", "section": "Code Refactoring", "hidden": true },
|
||||
{ "type": "test", "section": "Tests", "hidden": true },
|
||||
{ "type": "chore", "section": "Miscellaneous Chores", "hidden": true }
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue