diff options
| author | dundargoc <gocdundar@gmail.com> | 2024-10-02 14:58:03 +0200 |
|---|---|---|
| committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-10-02 15:20:12 +0200 |
| commit | 71ff1585a8a2d66c13f0da7d76e7ce4922128d8f (patch) | |
| tree | d9accdf9dd0fcfc9d21e098c915956fd8ba7f8e7 /.github/workflows/lint.yml | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.tar nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.tar.gz nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.tar.bz2 nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.tar.lz nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.tar.xz nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.tar.zst nvim-lspconfig-71ff1585a8a2d66c13f0da7d76e7ce4922128d8f.zip | |
ci: refactor ci output
Separate install step from test step so the output from each isn't mixed with each other.
Also add lint-like workflows to `lint.yml`.
Diffstat (limited to '.github/workflows/lint.yml')
| -rw-r--r-- | .github/workflows/lint.yml | 43 |
1 files changed, 29 insertions, 14 deletions
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 452748ce..7ee1244d 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,32 +6,47 @@ on: - master jobs: - lint: + luacheck: runs-on: ubuntu-latest steps: - - name: Checkout sources - uses: actions/checkout@v4 - - - name: Run luacheck - uses: lunarmodules/luacheck@v1 + - uses: actions/checkout@v4 + - uses: lunarmodules/luacheck@v1 with: args: lua/* test/* - - name: Run selene - uses: NTBBloodbath/selene-action@v1.0.0 + selene: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: NTBBloodbath/selene-action@v1.0.0 with: token: ${{ secrets.GITHUB_TOKEN }} args: --display-style=quiet . - style-lint: + stylua: runs-on: ubuntu-latest steps: - - name: Checkout sources - uses: actions/checkout@v4 - - - name: Lint with stylua - uses: JohnnyMorganz/stylua-action@v4 + - uses: actions/checkout@v4 + - uses: JohnnyMorganz/stylua-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} version: latest args: --check . + + codespell: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: pip install codespell + - run: codespell --quiet-level=2 --check-hidden --skip=./doc/configs.md,./doc/configs.txt --ignore-words=.codespellignorewords + + commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - run: npm install --save-dev @commitlint/{cli,config-conventional} + - run: | + echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js + - run: npx commitlint --from HEAD~1 --to HEAD --verbose |
