fix(ci): make-ci to allow running inside ci/cd

This commit is contained in:
2025-07-13 18:39:28 +03:00
parent d6357c131b
commit 8c9febaf8f
3 changed files with 18 additions and 5 deletions

View File

@@ -37,8 +37,4 @@ jobs:
run: make lint-json
- name: Test plugin installation
shell: fish {0}
run: |
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
fisher --version
make test
run: make test-ci

View File

@@ -53,6 +53,9 @@ fish -n functions/*.fish completions/*.fish
```bash
# Test plugin installation using Makefile
make test
# Test plugin installation in CI environment
make test-ci
```
#### Manual Installation Commands

View File

@@ -13,6 +13,7 @@ help:
@echo " lint-fix - Fix auto-fixable linting issues"
@echo " lint-check - Check linting without fixing"
@echo " test - Run tests (install plugin locally)"
@echo " test-ci - Run tests in CI environment"
@echo " clean - Clean temporary files"
# Install all required linting tools
@@ -129,6 +130,19 @@ test:
exit 1; \
fi
# Test in CI environment with Fish shell
test-ci:
@echo "Testing plugin installation in CI..."
@fish -c "\
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source; \
fisher install jorgebucaran/fisher; \
if fisher list | string match -q '*ivuorinen/nvm-auto-use.fish*'; \
echo 'Plugin already installed, skipping installation'; \
else; \
fisher install .; \
end; \
echo 'Plugin test completed successfully in CI!'"
# Clean temporary files
clean:
@echo "Cleaning temporary files..."