feat: MQA quality scoring — Phase 2 vocabulary checks (v2.14.0) #214
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 | |
| on: | |
| push: | |
| branches: ["**"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| jobs: | |
| phpcs: | |
| name: WordPress Coding Standards | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.1" | |
| tools: composer:v2 | |
| - name: Install dev dependencies | |
| run: composer install --no-interaction --prefer-dist --dev | |
| - name: Run PHPCS | |
| run: composer phpcs | |
| phpstan: | |
| name: PHPStan Static Analysis | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up PHP | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: "8.1" | |
| tools: composer:v2 | |
| - name: Install dependencies (prod + dev) | |
| run: composer install --no-interaction --prefer-dist | |
| - name: Run PHPStan | |
| run: composer phpstan | |
| phpunit: | |
| name: PHPUnit Tests | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ["8.1", "8.2", "8.3"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| tools: composer:v2 | |
| - name: Install dev dependencies | |
| run: composer install --no-interaction --prefer-dist --dev | |
| - name: Run PHPUnit | |
| run: composer test |