Compare commits
1 Commits
ae55fa9c52
...
b843124cd6
| Author | SHA1 | Date | |
|---|---|---|---|
| b843124cd6 |
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
@@ -146,6 +146,30 @@ jobs:
|
||||
echo "⚠ No test script configured, skipping"
|
||||
fi
|
||||
|
||||
test-without-dependencies:
|
||||
name: Test Without Dependencies
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v6.0.2
|
||||
|
||||
- name: Test action without installing dependencies
|
||||
uses: ./
|
||||
with:
|
||||
install-node: 'true'
|
||||
install-dependencies: 'false'
|
||||
server-path: './test-server'
|
||||
|
||||
- name: Verify installation
|
||||
run: |
|
||||
test -d ./test-server || exit 1
|
||||
node --version
|
||||
# node_modules should not exist since we skipped dependency installation
|
||||
if [ -d ./test-server/node_modules ]; then
|
||||
echo "✗ Dependencies were installed when they shouldn't have been"
|
||||
exit 1
|
||||
fi
|
||||
echo "✓ Installation without dependencies successful"
|
||||
|
||||
test-build-command:
|
||||
name: Test Build Command
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user