ci: add lint workflow (#61)

This commit is contained in:
winston 2023-12-29 04:42:18 +01:00 committed by GitHub
parent 6a8e91cfe6
commit e7525b79de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 39 additions and 1 deletions

25
.github/workflows/test.yml vendored Normal file
View File

@ -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

View File

@ -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 }
]
} }