Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/build-test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,54 +293,54 @@ jobs:
include:
- php: '8.4'
wp: 'trunk'
phpunit: '9.6'
phpunit: '10.5'
experimental: true

- php: '8.3'
wp: 'trunk'
phpunit: '9.6'
phpunit: '10.5'
experimental: true

- php: '8.2'
wp: 'trunk'
phpunit: '9.6'
phpunit: '10.5'

- php: '8.1'
wp: 'trunk'
phpunit: '9.6'
phpunit: '10.5'

- php: '8.0'
wp: 'trunk'
phpunit: '9.3'
phpunit: '9.6'
multisite: true

- php: '8.0'
wp: 'latest'
phpunit: '9.3'
phpunit: '9.6'
coverage: true

- php: '8.0'
wp: 'latest'
phpunit: '9.3'
phpunit: '9.6'
external-http: true

- php: '7.4'
wp: 'latest'
phpunit: '9.3'
phpunit: '9.6'
multisite: true

- php: '7.4'
wp: 'latest'
phpunit: '9.3'
phpunit: '9.6'
external-http: true

- php: '7.4'
wp: '6.6'
phpunit: '7'
phpunit: '9.6'

- php: '7.4'
wp: '6.6'
phpunit: '7'
phpunit: '9.6'
external-http: true
steps:
# Note: The repeated `needs.pre-run.outputs.changed-php-count > 0` checks would be avoided if a step could short-
Expand Down Expand Up @@ -439,27 +439,27 @@ jobs:
if: ${{ matrix.multisite == false && needs.pre-run.outputs.changed-php-count > 0 }}
run: |
if [[ ${{ matrix.external-http == false }} == true && ${{ matrix.coverage == false }} == true ]]; then
phpunit --verbose
phpunit
elif [[ ${{ matrix.external-http == true }} == true && ${{ matrix.coverage == false }} == true ]]; then
phpunit --testsuite external-http --verbose
phpunit --testsuite external-http
elif [[ ${{ matrix.external-http == false }} == true && ${{ matrix.coverage == true }} == true ]]; then
phpunit --verbose --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
phpunit --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
elif [[ ${{ matrix.external-http == true }} == true && ${{ matrix.coverage == true }} == true ]]; then
phpunit --testsuite external-http --verbose --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
phpunit --testsuite external-http --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
fi
working-directory: ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp

- name: Run multisite tests
if: ${{ matrix.multisite == true && needs.pre-run.outputs.changed-php-count > 0 }}
run: |
if [[ ${{ matrix.external-http == false }} == true && ${{ matrix.coverage == false }} == true ]]; then
phpunit --verbose
phpunit
elif [[ ${{ matrix.external-http == true }} == true && ${{ matrix.coverage == false }} == true ]]; then
phpunit --testsuite external-http --verbose
phpunit --testsuite external-http
elif [[ ${{ matrix.external-http == false }} == true && ${{ matrix.coverage == true }} == true ]]; then
phpunit --verbose --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
phpunit --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
elif [[ ${{ matrix.external-http == true }} == true && ${{ matrix.coverage == true }} == true ]]; then
phpunit --testsuite external-http --verbose --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
phpunit --testsuite external-http --coverage-clover ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp/build/logs/clover.xml
fi
working-directory: ${{ env.WP_CORE_DIR }}/src/wp-content/plugins/amp
env:
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"wp-cli/wp-cli": "^2.0",
"wp-cli/wp-cli-tests": "^4.0",
"wp-coding-standards/wpcs": "^3.0",
"yoast/phpunit-polyfills": "2.0.5 as 1.1.0",
"yoast/wp-test-utils": "^1.0"
},
"suggest": {
Expand Down
Loading
Loading