test: address http_api_transports
deprecation in WP 6.4 (#4903)
#1185
This file contains 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: Coverage Report | |
on: | |
push: | |
branches: | |
- develop | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
unit-tests: | |
name: "WP ${{ matrix.config.wp }}, multisite: ${{ matrix.config.ms }}, JP: ${{ matrix.config.jp }}, PHP: ${{ matrix.config.php }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- { wp: latest, ms: 'no', jp: 'yes', php: '8.0' } | |
- { wp: latest, ms: 'yes', jp: 'yes', php: '8.0' } | |
services: | |
mysql: | |
image: mysql:8 | |
ports: | |
- "3306:3306" | |
env: | |
MYSQL_ROOT_PASSWORD: wordpress | |
MYSQL_INITDB_SKIP_TZINFO: 1 | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
MYSQL_DATABASE: wordpress_test | |
steps: | |
- name: Check out source code | |
uses: actions/[email protected] | |
with: | |
submodules: recursive | |
- name: Prepare source code | |
uses: ./.github/actions/prepare-source | |
- name: Run tests | |
uses: ./.github/actions/run-wp-tests | |
with: | |
wordpress: ${{ matrix.config.wp }} | |
multisite: ${{ matrix.config.ms }} | |
jetpack: ${{ matrix.config.jp }} | |
php: ${{ matrix.config.php }} | |
coverage: 'yes' |