Tidy debug call in wp_cache_get_postid_from_comment() #569
Workflow file for this run
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: E2E Tests | |
| on: | |
| pull_request: | |
| push: | |
| branches: [trunk] | |
| jobs: | |
| e2e: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: pnpm/action-setup@v4 | |
| with: | |
| version: 10 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '22' | |
| cache: pnpm | |
| cache-dependency-path: tests/e2e/pnpm-lock.yaml | |
| - name: Install dependencies | |
| working-directory: tests/e2e | |
| run: pnpm install --frozen-lockfile | |
| - name: Start Docker environment | |
| working-directory: tests/e2e | |
| run: docker compose up -d --build --wait | |
| - name: Wait for WordPress | |
| run: | | |
| echo "Waiting for WordPress to be ready..." | |
| for i in $(seq 1 30); do | |
| if curl -sf http://localhost:2022/ > /dev/null 2>&1; then | |
| echo "WordPress is ready." | |
| exit 0 | |
| fi | |
| echo "Attempt $i/30 - waiting 5s..." | |
| sleep 5 | |
| done | |
| echo "WordPress did not become ready in time." | |
| docker compose -f tests/e2e/docker-compose.yml --project-directory tests/e2e logs | |
| exit 1 | |
| - name: Run e2e tests | |
| working-directory: tests/e2e | |
| run: pnpm test:run | |
| - name: Docker logs | |
| if: failure() | |
| working-directory: tests/e2e | |
| run: docker compose logs | |
| - name: Tear down Docker environment | |
| if: always() | |
| working-directory: tests/e2e | |
| run: docker compose down -v |