Document the real Spoken Audio Node migration state, and fix the CI that hid it #275
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
| # Tests Workflow | |
| # Purpose: Run scheduled and PR-triggered WordPress, E2E, and dependency checks across PHP and WP matrices. | |
| name: Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [main, develop] | |
| schedule: | |
| - cron: "0 2 * * *" # Daily at 2 AM | |
| jobs: | |
| wordpress-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ["8.2", "8.3", "8.4"] | |
| wordpress: ["6.8", "6.9"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup PHP ${{ matrix.php }} | |
| # uses: shivammathur/setup-php@v2 | |
| uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Setup pnpm | |
| # uses: pnpm/action-setup@v4 | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "pnpm" | |
| - name: Install dependencies | |
| run: | | |
| pnpm install --frozen-lockfile | |
| composer install --no-interaction | |
| - name: Start WordPress ${{ matrix.wordpress }} | |
| run: | | |
| echo '{"core": "WordPress/WordPress#${{ matrix.wordpress }}", "phpVersion": "${{ matrix.php }}"}' > .wp-env.override.json | |
| pnpm run env:start | |
| - name: Run WordPress tests | |
| run: pnpm run test:wp-env | |
| - name: Run E2E tests | |
| run: | | |
| pnpm exec playwright install --with-deps chromium | |
| pnpm run test:e2e | |
| - name: Stop WordPress | |
| run: pnpm run env:stop | |
| if: always() | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run security audit | |
| run: | | |
| pnpm audit --audit-level=moderate | |
| composer audit --no-dev | |
| continue-on-error: true |