diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8c894ef..895ef02 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/CLAUDE.md b/CLAUDE.md index 34a900c..0a8eaa7 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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 diff --git a/Makefile b/Makefile index 171c5b3..c16869b 100644 --- a/Makefile +++ b/Makefile @@ -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..."