Skip to content

Fix GitHub Actions CI test execution - Fixed SCRIPT_DIR path resoluti… #2

Fix GitHub Actions CI test execution - Fixed SCRIPT_DIR path resoluti…

Fix GitHub Actions CI test execution - Fixed SCRIPT_DIR path resoluti… #2

Workflow file for this run

name: Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Verify repository structure
run: |
echo "Current directory: $(pwd)"
echo "Repository contents:"
ls -la
echo "Bin directory contents:"
ls -la bin/
- name: Make test script executable
run: chmod +x bin/gitstack_test.sh
- name: Run gitstack tests
working-directory: .
run: |
echo "🧪 Running gitstack tests..."
echo "Working directory: $(pwd)"
echo "Running from: $(realpath bin/gitstack_test.sh)"
if ./bin/gitstack_test.sh; then
echo "✅ All tests passed!"
else
echo "❌ Tests failed!"
exit 1
fi
- name: Test summary
if: always()
run: |
if [ $? -eq 0 ]; then
echo "🎉 gitstack is working correctly!"
else
echo "🚨 gitstack has issues that need attention"
fi