Skip to content

Commit 3e4e490

Browse files
committed
fix: update CI and Makefile for moved files and fix stylua installation
- Fix stylua installation to use correct tar.gz download and extraction - Update validate script path from validate.lua to scripts/validate.lua - Update luacheck paths to include scripts/validate.lua - Update stylua formatting paths to include scripts/validate.lua - Update Makefile validate target to use correct script path - All local tests passing with updated paths
1 parent 6593e0a commit 3e4e490

3 files changed

Lines changed: 9 additions & 8 deletions

File tree

File renamed without changes.

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
eval "$(luarocks path --bin)"
5555
5656
- name: Run validation
57-
run: lua validate.lua || echo "Validation failed, but continuing"
57+
run: lua scripts/validate.lua || echo "Validation failed, but continuing"
5858

5959
- name: Run unit tests
6060
run: |
@@ -93,7 +93,7 @@ jobs:
9393
- name: Run luacheck
9494
run: |
9595
eval "$(luarocks path --bin)" || true
96-
luacheck lua/ test/ validate.lua --exclude-files test/plenary.nvim --no-max-line-length || echo "Linting completed with warnings"
96+
luacheck lua/ test/ scripts/validate.lua --exclude-files test/plenary.nvim --no-max-line-length || echo "Linting completed with warnings"
9797
9898
format:
9999
runs-on: ubuntu-latest
@@ -103,12 +103,13 @@ jobs:
103103

104104
- name: Install stylua
105105
run: |
106-
curl -sL https://github.com/JohnnyMorganz/stylua/releases/latest/download/stylua-linux-x86_64 | sudo tee /usr/local/bin/stylua > /dev/null
106+
curl -sL https://github.com/JohnnyMorganz/stylua/releases/latest/download/stylua-linux-x86_64.tar.gz | tar -xz
107+
sudo mv stylua /usr/local/bin/
107108
sudo chmod +x /usr/local/bin/stylua
108109
109110
- name: Check code formatting
110111
run: |
111-
stylua --check lua/ plugin/ test/ validate.lua
112+
stylua --check lua/ plugin/ test/ scripts/validate.lua
112113
113114
build:
114115
runs-on: ubuntu-latest

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,25 @@ test-integration:
3737
# Run validation
3838
validate:
3939
@echo "Running validation..."
40-
@lua validate.lua
40+
@lua scripts/validate.lua
4141
@echo "✓ Validation completed"
4242

4343
# Run luacheck linting
4444
lint:
4545
@echo "Running luacheck linting..."
46-
@luacheck lua/ test/ validate.lua --exclude-files test/plenary.nvim --no-max-line-length
46+
@luacheck lua/ test/ scripts/validate.lua --exclude-files test/plenary.nvim --no-max-line-length
4747
@echo "✓ Linting completed"
4848

4949
# Format code with stylua
5050
format:
5151
@echo "Formatting code with stylua..."
52-
@stylua lua/ plugin/ test/ validate.lua
52+
@stylua lua/ plugin/ test/ scripts/validate.lua
5353
@echo "✓ Code formatting completed"
5454

5555
# Check code formatting
5656
format-check:
5757
@echo "Checking code formatting..."
58-
@stylua --check lua/ plugin/ test/ validate.lua
58+
@stylua --check lua/ plugin/ test/ scripts/validate.lua
5959
@echo "✓ Code formatting check completed"
6060

6161
# Clean up test artifacts

0 commit comments

Comments
 (0)