Remove obsolete patch instructions #14
Workflow file for this run
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: PHP checks | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.1" | |
| - name: Check PHP syntax | |
| run: find . -type f -name '*.php' -not -path './vendor/*' -print0 | xargs -0 -n1 php -l | |
| - name: Run regression tests | |
| run: php tests/TimeServiceTest.php | |
| - name: Check repository hygiene | |
| shell: bash | |
| run: | | |
| forbidden="$(git ls-files | grep -E '^(app/config\.php|public/(boot-test|diag|phpver)\.php|public/error_log|storage/DEBUG_ON|storage/.*\.(log|pdf)|storage/sessions/sess_)' || true)" | |
| if [ -n "$forbidden" ]; then | |
| echo "Production-only files were committed:" | |
| echo "$forbidden" | |
| exit 1 | |
| fi | |