Skip to content

Commit

Permalink
Update tests title
Browse files Browse the repository at this point in the history
  • Loading branch information
thelovekesh committed Feb 24, 2024
1 parent a60fde8 commit 1f5b39e
Showing 1 changed file with 16 additions and 36 deletions.
52 changes: 16 additions & 36 deletions .github/workflows/php-test.yml
@@ -1,4 +1,4 @@
name: Unit Testing for Plugins
name: PHP Unit Tests

on:
push:
Expand All @@ -17,7 +17,7 @@ permissions: {}

jobs:
unit-test-main-plugin:
name: 'PHP ${{ matrix.php }} / WP ${{ matrix.wp }}'
name: "PerfLab / PHP ${{ matrix.environment.php }} / WP ${{ matrix.environment.wp }} ${{ 'true' == matrix.multisite && '/ Multisite'}}"
runs-on: ubuntu-latest
timeout-minutes: 20
env:
Expand All @@ -39,48 +39,28 @@ jobs:
fail-fast: false
matrix:
multisite: ['true', 'false']
include:
- php: '7.0'
phpunit: '6'
wp: 'latest'
environment:
[
{ php: '7.0', phpunit: '6', wp: 'latest' },
{ php: '7.1', phpunit: '7', wp: 'latest' },
{ php: '7.2', phpunit: '7', wp: 'latest' },
{ php: '7.3', phpunit: '7', wp: 'latest' },
{ php: '7.4', phpunit: '9.3', wp: 'latest' },
{ php: '8.0', phpunit: '9.3', wp: 'latest' },
{ php: '8.1', phpunit: '9.6', wp: 'latest' },
{ php: '8.2', phpunit: '9.6', wp: 'latest' },
]

- php: '7.1'
phpunit: '7'
wp: 'latest'

- php: '7.2'
phpunit: '7'
wp: 'latest'

- php: '7.3'
phpunit: '7'
wp: 'latest'

- php: '7.4'
phpunit: '9.3'
wp: 'latest'

- php: '8.0'
phpunit: '9.3'
wp: 'latest'

- php: '8.1'
phpunit: '9.6'
wp: 'latest'

- php: '8.2'
phpunit: '9.6'
wp: 'latest'
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup WP tests
uses: ./.github/actions/setup-wp-tests
with:
wp: ${{ matrix.wp }}
php: ${{ matrix.php }}
phpunit: ${{ matrix.phpunit }}
wp: ${{ matrix.environment.wp }}
php: ${{ matrix.environment.php }}
phpunit: ${{ matrix.environment.phpunit }}
multisite-tests: ${{ matrix.multisite }}
mysql-port: ${{ job.services.mysql.ports['3306'] }}

Expand Down

0 comments on commit 1f5b39e

Please sign in to comment.