fix: use get_permalink() instead of post GUID for page redirect (v3.1… #40
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: Integration Tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| branches: [master] | |
| workflow_dispatch: | |
| jobs: | |
| integration: | |
| name: Integration (PHP ${{ matrix.php }}, WP ${{ matrix.wp }}) | |
| runs-on: ubuntu-latest | |
| services: | |
| mysql: | |
| image: mysql:8.0 | |
| env: | |
| MYSQL_ROOT_PASSWORD: root | |
| MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
| ports: | |
| - 3306:3306 | |
| options: >- | |
| --health-cmd="mysqladmin ping --silent" | |
| --health-interval=10s | |
| --health-timeout=5s | |
| --health-retries=5 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - php: '8.1' | |
| wp: '6.4' | |
| - php: '8.1' | |
| wp: 'latest' | |
| - php: '8.3' | |
| wp: 'latest' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup PHP ${{ matrix.php }} | |
| uses: shivammathur/setup-php@v2 | |
| with: | |
| php-version: ${{ matrix.php }} | |
| tools: composer | |
| extensions: mysqli | |
| - name: Install Composer dependencies | |
| run: composer install --no-progress | |
| - name: Make install script executable | |
| run: chmod +x bin/install-wp-tests.sh | |
| - name: Install WordPress test suite | |
| run: | | |
| bash bin/install-wp-tests.sh \ | |
| wordpress_test \ | |
| root \ | |
| root \ | |
| 127.0.0.1 \ | |
| ${{ matrix.wp }} | |
| - name: Run integration tests | |
| run: composer test:integration | |
| env: | |
| WP_TESTS_DIR: /tmp/wordpress-tests-lib |