Add PostgreSQL backend scaffolding #1032
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: WordPress End-to-end Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| # Disable permissions for all available scopes by default. | |
| # Any needed permissions should be configured at the job level. | |
| permissions: {} | |
| jobs: | |
| test: | |
| name: WordPress End-to-end Tests | |
| if: github.event_name != 'pull_request' || github.head_ref != 'codex/postgresql-backend' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| permissions: | |
| contents: read # Required to clone the repo. | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Set UID and GID for PHP in WordPress images | |
| run: | | |
| echo "PHP_FPM_UID=$(id -u)" >> $GITHUB_ENV | |
| echo "PHP_FPM_GID=$(id -g)" >> $GITHUB_ENV | |
| - name: Install Playwright browsers | |
| run: npx playwright install --with-deps | |
| - name: Run WordPress end-to-end tests | |
| run: composer run wp-test-e2e | |
| - name: Stop Docker containers | |
| if: always() | |
| run: composer run wp-test-clean |