Skip to content

Commit

Permalink
Tests: Use Ubuntu 22.04 runner for PHP 7.0 tests (#39779)
Browse files Browse the repository at this point in the history
* Pass runner from matrix to workflow

* Run PHP 7.0 tests on Ubuntu 22.04
  • Loading branch information
tbradsha authored Oct 15, 2024
1 parent 98c584f commit 70ef2cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/files/generate-ci-matrix.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
// {string} Name for the job. Required, and must be unique.
'name' => null,

// {string} Runner name as found in https://github.com/actions/runner-images/.
'runner' => 'ubuntu-latest',

// {string} Composer script for the job. Required.
'script' => null,

Expand Down Expand Up @@ -68,9 +71,10 @@
);
}

// TODO: When WordPress 6.5 is no longer supported, this can be removed.
// TODO: When WordPress 6.5 is no longer supported, this can be removed. Runs too slow on ubuntu-24.04 (ubuntu-latest).
$matrix[] = array(
'name' => 'PHP tests: PHP 7.0 WP previous',
'runner' => 'ubuntu-22.04',
'script' => 'test-php',
'php' => '7.0',
'wp' => 'previous',
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run-tests:
name: ${{ matrix.name }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}
needs: create-matrix
services:
database:
Expand Down

0 comments on commit 70ef2cd

Please sign in to comment.