Move native AST identity cache into the Rust extension #829
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 PHPUnit Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| test: | |
| name: WordPress PHPUnit Tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| 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: Run WordPress PHPUnit tests | |
| run: node .github/workflows/wp-tests-phpunit-run.js | |
| - name: Stop Docker containers | |
| if: always() | |
| run: composer run wp-test-clean | |
| native-parser-test: | |
| name: WordPress PHPUnit Tests / Rust extension | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 40 | |
| 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: Set up WordPress test environment | |
| run: composer run wp-setup | |
| - name: Build and load parser extension in WordPress PHP containers | |
| run: bash .github/workflows/wp-tests-phpunit-native-extension-setup.sh | |
| - name: Run WordPress PHPUnit tests with parser extension | |
| run: node .github/workflows/wp-tests-phpunit-run.js | |
| - name: Stop Docker containers | |
| if: always() | |
| run: composer run wp-test-clean |