Wire PAM-002-P2 ContextPulse fields from live Sirus context/environment data #224
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: Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [universe, main, develop] | |
| schedule: | |
| - cron: "0 2 * * *" # Daily at 2 AM | |
| jobs: | |
| wordpress-tests: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| php: ["8.2", "8.3"] | |
| wordpress: ["6.4", "latest"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Authenticate git for private org packages | |
| env: | |
| TOKEN: ${{ secrets.COPILOT_MCP_TOKEN }} | |
| run: | | |
| if [ -n "${TOKEN}" ]; then | |
| git config --global --add url."https://x-access-token:${TOKEN}@github.com/Starisian-Technologies/".insteadOf "https://github.com/Starisian-Technologies/" | |
| git config --global --add url."https://x-access-token:${TOKEN}@github.com/Starisian-Technologies/".insteadOf "git@github.com:Starisian-Technologies/" | |
| else | |
| echo "No COPILOT_MCP_TOKEN provided; skipping git authentication rewrite for Starisian-Technologies." | |
| fi | |
| - name: Setup PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@ec406be512d7077f68eed36e63f4d91bc006edc4 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "24" | |
| - name: Setup pnpm | |
| uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 | |
| with: | |
| version: 8.6.0 | |
| - 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 wp-env start || echo "wp-env not configured" | |
| - name: Run WordPress tests | |
| run: pnpm run test:wp || echo "WordPress tests not configured" | |
| - name: Run E2E tests | |
| run: | | |
| npx playwright install --with-deps chromium || echo "Playwright not configured" | |
| pnpm run test:e2e || echo "E2E tests not configured" | |
| - name: Stop WordPress | |
| run: pnpm wp-env stop || echo "wp-env not configured" | |
| if: always() | |
| security-scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run security audit | |
| run: | | |
| pnpm audit --audit-level=moderate | |
| composer audit | |
| continue-on-error: true |