@@ -11,13 +11,12 @@ jobs:
1111 name : luacheck
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@v3
14+ - uses : actions/checkout@v4
1515
1616 - name : Install luacheck
1717 run : |
1818 sudo apt-get update
19- sudo apt-get install -y luarocks
20- sudo luarocks install luacheck
19+ sudo apt-get install -y luacheck
2120
2221 - name : Run luacheck
2322 run : make lint
@@ -26,22 +25,20 @@ jobs:
2625 name : stylua
2726 runs-on : ubuntu-latest
2827 steps :
29- - uses : actions/checkout@v3
30-
31- - name : Install stylua
32- run : |
33- wget -qO- https://github.com/JohnnyMorganz/StyLua/releases/latest/download/stylua-linux-x86_64.zip | funzip > stylua
34- chmod +x stylua
35- sudo mv stylua /usr/local/bin/
28+ - uses : actions/checkout@v4
3629
3730 - name : Check formatting
38- run : make format-check
31+ uses : JohnnyMorganz/stylua-action@v4
32+ with :
33+ token : ${{ secrets.GITHUB_TOKEN }}
34+ version : latest
35+ args : --check --config-path stylua.toml lua/ tests/
3936
4037 test :
4138 name : test
4239 runs-on : ubuntu-latest
4340 steps :
44- - uses : actions/checkout@v3
41+ - uses : actions/checkout@v4
4542
4643 - name : Setup Neovim
4744 uses : rhysd/action-setup-vim@v1
5148
5249 - name : Install dependencies
5350 run : |
54- sudo apt update
55- sudo apt install -y fd-find lua5.3
56- sudo ln -sf /usr/bin/lua5.3 /usr/bin/lua
57- make install-deps
51+ sudo apt-get update
52+ sudo apt-get install -y luarocks
53+ sudo luarocks install vusted
5854 git config --global user.name "CI Bot"
5955 git config --global user.email "ci@vgit.nvim"
6056
6561 name : commit-lint
6662 runs-on : ubuntu-latest
6763 steps :
68- - uses : actions/checkout@v3
64+ - uses : actions/checkout@v4
6965 with :
7066 fetch-depth : 0
7167 - uses : webiny/action-conventional-commits@v1.0.3
0 commit comments