Skip to content

Commit 8cdbdff

Browse files
authored
ci: update lint & coverage (#231)
1 parent 4769096 commit 8cdbdff

File tree

2 files changed

+9
-27
lines changed

2 files changed

+9
-27
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,11 @@ jobs:
3636
rm -rf ./lua/colorbox/commons
3737
cp -rf ~/.commons.nvim/lua/commons ./lua/colorbox/
3838
cp ~/.commons.nvim/version.txt ./lua/colorbox/commons/version.txt
39-
find ./lua/colorbox/commons -type f -name '*.lua' -exec sed -i 's/"commons./"colorbox.commons./g' {} \;
40-
- uses: stevearc/nvim-typecheck-action@v1
39+
find ./lua/colorbox/commons -type f -name '*.lua' -exec sed -i 's/require("commons/require("colorbox.commons/g' {} \;
40+
- uses: mrcjkb/lua-typecheck-action@v0
4141
with:
42-
path: lua
43-
level: Information
42+
directories: lua
4443
configpath: ".luarc.json"
45-
neodev-version: stable
4644
- uses: cargo-bins/cargo-binstall@main
4745
- name: Selene
4846
run: |
@@ -75,27 +73,6 @@ jobs:
7573
with:
7674
luaVersion: "luajit-2.1.0-beta3"
7775
- uses: leafo/gh-actions-luarocks@v4
78-
- name: Run Tests
79-
shell: bash
80-
run: |
81-
luarocks install vusted
82-
vusted --shuffle ./spec
83-
code_coverage:
84-
name: Code Coverage
85-
needs:
86-
- lint
87-
runs-on: ubuntu-latest
88-
steps:
89-
- uses: actions/checkout@v4
90-
- uses: rhysd/action-setup-vim@v1
91-
id: vim
92-
with:
93-
neovim: true
94-
version: stable
95-
- uses: leafo/gh-actions-lua@v10
96-
with:
97-
luaVersion: "luajit-2.1.0-beta3"
98-
- uses: leafo/gh-actions-luarocks@v4
9976
- name: Run Tests
10077
shell: bash
10178
run: |
@@ -123,7 +100,6 @@ jobs:
123100
if: ${{ github.ref == 'refs/heads/main' }}
124101
needs:
125102
- unit_test
126-
- code_coverage
127103
runs-on: ubuntu-latest
128104
steps:
129105
- uses: google-github-actions/release-please-action@v3

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,9 @@ dmypy.json
138138

139139
# pack/colorbox/start
140140
/pack/colorbox/start
141+
142+
# logs
143+
*colorbox.nvim_colorbox.nvim_lua.log
144+
service.log
145+
stderr.txt
146+
stdout.txt

0 commit comments

Comments
 (0)