Merge pull request #4 from MrDemonWolf/claude/sharp-lamarr-4d9b7f #28
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 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| push: | |
| branches: [main, dev] | |
| pull_request: | |
| branches: [main, dev] | |
| jobs: | |
| lint: | |
| name: Lint & Validate | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: PHP syntax check | |
| run: php -l theme/functions.php | |
| - name: PHP Code Sniffer (WordPress-Core, errors only) | |
| run: | | |
| composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true | |
| composer global require wp-coding-standards/wpcs:"^3" --no-progress --no-interaction -q | |
| ~/.composer/vendor/bin/phpcs --standard=WordPress-Core -n --extensions=php theme/functions.php | |
| - name: Check for leftover Nexus references | |
| run: | | |
| ! grep -ri "nexus" theme/ supplementary/ --include="*.php" --include="*.css" --include="*.js" --include="*.json" --include="*.xml" | |
| - name: Build theme zip | |
| run: cd theme && zip -r ../mrdemonwolf.zip . -x "*.DS_Store" |