Skip to content

Commit 089e4c8

Browse files
committed
ci: Add stylua job
1 parent 532f1b3 commit 089e4c8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,21 @@
1+
---
12
# From https://github.com/folke/lazy.nvim
23
name: CI
34
on:
45
push:
56
pull_request:
67

78
jobs:
9+
stylua:
10+
name: Stylua
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: JohnnyMorganz/stylua-action@v4
15+
with:
16+
token: ${{ secrets.TOKEN }}
17+
version: latest
18+
args: --check lua
819
tests:
920
strategy:
1021
matrix:
@@ -22,7 +33,7 @@ jobs:
2233
run: |
2334
nvim --version
2435
[ ! -d tests ] && exit 0
25-
curl -sLo /tmp/kubeconform.tar.gz https://github.com/yannh/kubeconform/releases/download/v0.6.1/kubeconform-linux-amd64.tar.gz
36+
curl -sLo /tmp/kubeconform.tar.gz https://github.com/yannh/kubeconform/releases/download/v0.6.7/kubeconform-linux-amd64.tar.gz
2637
tar -xC /tmp -f /tmp/kubeconform.tar.gz
2738
mv /tmp/kubeconform /usr/local/bin/kubeconform
2839
curl -sLo /tmp/kubent.tar.gz https://github.com/doitintl/kube-no-trouble/releases/download/0.7.0/kubent-0.7.0-linux-amd64.tar.gz

.stylua.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
indent_type = "Spaces"
2+
indent_width = 2

0 commit comments

Comments
 (0)