feat: add blog-ready sandbox workflow #7
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: Test Setup Script | |
| on: | |
| push: | |
| branches: [main, git-stunts] | |
| paths: | |
| - 'scripts/setup.sh' | |
| - 'test/setup.bats' | |
| - 'test/run-setup-tests.sh' | |
| - 'test/Dockerfile.bats' | |
| pull_request: | |
| paths: | |
| - 'scripts/setup.sh' | |
| - 'test/setup.bats' | |
| - 'test/run-setup-tests.sh' | |
| - 'test/Dockerfile.bats' | |
| jobs: | |
| test-setup-script: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run BATS tests | |
| run: npm run test:setup | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: bats-test-results | |
| path: test-results/ |