From e7525b79de531c0ab459d40b3a74704eb89128a5 Mon Sep 17 00:00:00 2001 From: winston Date: Fri, 29 Dec 2023 04:42:18 +0100 Subject: [PATCH] ci: add lint workflow (#61) --- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ release-please-config.json | 15 ++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..f558bca --- /dev/null +++ b/.github/workflows/test.yml @@ -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 diff --git a/release-please-config.json b/release-please-config.json index 02a3b47..8a4a6d7 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -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 } + ] }