design: use code worklog wporg icon #14
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: CI | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: '7.4' | |
| - name: Run tests | |
| run: php tests/run.php | |
| - name: Validate readme metadata | |
| run: php tests/validate-readme.php | |
| - name: PHP syntax check | |
| run: find . -path ./.git -prune -o -path ./dist -prune -o -name '*.php' -print0 | xargs -0 -n1 php -l | |
| - name: Build release ZIP | |
| run: bash scripts/build-release.sh | |
| - name: Validate release ZIP | |
| run: python3 scripts/validate-release-zip.py |