Merge pull request #1 from dagjomar/cursor/review-project-and-impleme… #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |