aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-10-02 14:58:03 +0200
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-10-02 15:20:12 +0200
commit71ff1585a8a2d66c13f0da7d76e7ce4922128d8f (patch)
treed9accdf9dd0fcfc9d21e098c915956fd8ba7f8e7 /.github/workflows
parentdocs: update configs.md (diff)
downloadnvim-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')
-rw-r--r--.github/workflows/codespell.yml11
-rw-r--r--.github/workflows/commit_lint.yml12
-rw-r--r--.github/workflows/lint.yml43
-rw-r--r--.github/workflows/release.yml2
-rw-r--r--.github/workflows/test.yml16
5 files changed, 36 insertions, 48 deletions
diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml
deleted file mode 100644
index 31c713c5..00000000
--- a/.github/workflows/codespell.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-name: codespell
-on: [pull_request]
-jobs:
- codespell:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Install codespell
- run: pip install codespell
- - name: Use codespell
- run: codespell --quiet-level=2 --check-hidden --skip=./doc/configs.md,./doc/configs.txt --ignore-words=.codespellignorewords
diff --git a/.github/workflows/commit_lint.yml b/.github/workflows/commit_lint.yml
deleted file mode 100644
index e1df4cae..00000000
--- a/.github/workflows/commit_lint.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-on: [pull_request]
-jobs:
- lint-commits:
- 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
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
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index d38b8f20..79de3da7 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,7 +5,7 @@ on:
- '*'
jobs:
luarocks-upload:
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: LuaRocks Upload
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8d5f7a75..d7b14d3e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -20,17 +20,13 @@ jobs:
neovim: true
version: nightly
- - name: luajit
- uses: leafo/gh-actions-lua@v10
+ - uses: leafo/gh-actions-lua@v10
with:
luaVersion: "luajit-openresty"
+ - uses: leafo/gh-actions-luarocks@v4
- - name: luarocks
- uses: leafo/gh-actions-luarocks@v4
+ - name: Install vusted
+ run: luarocks install vusted
- - name: run test
- shell: bash
- run: |
- luarocks install luacheck
- luarocks install vusted
- vusted ./test
+ - name: Run test
+ run: vusted ./test