mirror of
https://github.com/ivuorinen/nvm-auto-use.fish.git
synced 2026-01-26 11:14:03 +00:00
fix(ci): make-ci to allow running inside ci/cd
This commit is contained in:
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
14
Makefile
14
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..."
|
||||
|
||||
Reference in New Issue
Block a user