Skip to content

fix: uri field is null when querying the page for posts uri #2688

fix: uri field is null when querying the page for posts uri

fix: uri field is null when querying the page for posts uri #2688

name: Testing Integration
on:
push:
branches:
- develop
- master
pull_request:
branches:
- develop
- master
paths:
- '**.php'
- '.github/workflows/*.yml'
- '!docs/**'
jobs:
continuous_integration:
name: WordPress ${{ matrix.wordpress }} on PHP ${{ matrix.php }} ${{ matrix.multisite && 'Multisite' || '' }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [ '8.0', '7.4' ]
wordpress: [ '6.2', '6.1', '6.0', '5.9', '5.8', '5.7', '5.6' ]
include:
- php: '8.1'
wordpress: '6.2'
multisite: true
- php: '8.1'
wordpress: '6.2'
coverage: 1
- php: '8.1'
wordpress: '6.1'
- php: '8.1'
wordpress: '6.0'
- php: '8.1'
wordpress: '5.9'
- php: '7.3'
wordpress: '5.9'
- php: '7.3'
wordpress: '5.8'
- php: '7.3'
wordpress: '5.7'
- php: '7.3'
wordpress: '5.6'
# This is a temporary exclusion until a php74 image is released. See #2780
exclude:
- php: '7.4'
- wordpress: '6.2'
steps:
- name: Cancel previous runs of this workflow (pull requests only)
if: ${{ github.event_name == 'pull_request' }}
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Checkout
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
extensions: json, mbstring
- name: Install dependencies
uses: ramsey/composer-install@v2
with:
composer-options: "--no-dev"
- name: Build "testing" Docker Image
env:
PHP_VERSION: ${{ matrix.php }}
WP_VERSION: ${{ matrix.wordpress }}
run: composer build-test
- name: Run Functional Tests w/ Docker.
env:
COVERAGE: ${{ matrix.coverage }}
USING_XDEBUG: ${{ matrix.coverage }}
DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG || matrix.debug }}
SKIP_TESTS_CLEANUP: ${{ matrix.coverage }}
SUITES: functional
PHP_VERSION: ${{ matrix.php }}
WP_VERSION: ${{ matrix.wordpress }}
run: composer run-test
- name: Run WPUnit Tests w/ Docker.
env:
COVERAGE: ${{ matrix.coverage }}
USING_XDEBUG: ${{ matrix.coverage }}
DEBUG: ${{ secrets.ACTIONS_STEP_DEBUG || matrix.debug }}
SKIP_TESTS_CLEANUP: ${{ matrix.coverage }}
PHP_VERSION: ${{ matrix.php }}
WP_VERSION: ${{ matrix.wordpress }}
MULTISITE: ${{ matrix.multisite }}
run: composer run-test
- name: Push Codecoverage to Coveralls.io
if: ${{ matrix.coverage == 1 }}
env:
COVERALLS_RUN_LOCALLY: 1
COVERALLS_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: vendor/bin/php-coveralls -v