Skip to content

Commit

Permalink
Test workflows with ubuntu-24.
Browse files Browse the repository at this point in the history
  • Loading branch information
desrosj committed Nov 6, 2024
1 parent 7b94f09 commit 3114156
Show file tree
Hide file tree
Showing 28 changed files with 77 additions and 77 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ jobs:
# Runs the PHP coding standards checks.
phpcs:
name: PHP coding standards
uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-php.yml@trunk
uses: ./.github/workflows/reusable-coding-standards-php.yml
permissions:
contents: read
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}

# Runs the JavaScript coding standards checks.
jshint:
name: JavaScript coding standards
uses: WordPress/wordpress-develop/.github/workflows/reusable-coding-standards-javascript.yml@trunk
uses: ./.github/workflows/reusable-coding-standards-javascript.yml
permissions:
contents: read
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
Expand All @@ -80,7 +80,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ phpcs, jshint, slack-notifications ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# Runs the end-to-end test suite.
e2e-tests:
name: Test with SCRIPT_DEBUG ${{ matrix.LOCAL_SCRIPT_DEBUG && 'enabled' || 'disabled' }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-end-to-end-tests.yml@trunk
uses: ./.github/workflows/reusable-end-to-end-tests.yml
permissions:
contents: read
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ e2e-tests, slack-notifications ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/failed-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# - Restarts all failed jobs when the workflow fails or is cancelled for the first time.
failed-workflow:
name: Rerun a workflow
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
timeout-minutes: 30
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/install-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
# - Fetches the versions of MySQL to test.
build-matrix:
name: Determine PHP Versions to test
runs-on: ubuntu-latest
runs-on: ubuntu-24
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
timeout-minutes: 5
outputs:
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-24 ]
php: ${{ fromJSON( needs.build-matrix.outputs.php-versions ) }}
db-type: [ 'mysql' ]
db-version: ${{ fromJSON( needs.build-matrix.outputs.mysql-versions ) }}
Expand Down Expand Up @@ -188,7 +188,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ slack-notifications ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# Runs the WordPress Core JavaScript tests.
test-js:
name: QUnit Tests
uses: WordPress/wordpress-develop/.github/workflows/reusable-javascript-tests.yml@trunk
uses: ./.github/workflows/reusable-javascript-tests.yml
permissions:
contents: read
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
Expand All @@ -70,7 +70,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ slack-notifications ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
# Runs the performance test suite.
performance:
name: Performance tests ${{ matrix.memcached && '(with memcached)' || '' }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-performance.yml@trunk
uses: ./.github/workflows/reusable-performance.yml
permissions:
contents: read
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
Expand Down Expand Up @@ -64,7 +64,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ slack-notifications ]
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:

slack-notifications:
name: Slack Notifications
uses: WordPress/wordpress-develop/.github/workflows/slack-notifications.yml@trunk
uses: ./.github/workflows/slack-notifications.yml
permissions:
actions: read
contents: read
Expand All @@ -67,7 +67,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ slack-notifications ]
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ jobs:
#
test-with-mysql:
name: PHP ${{ matrix.php }}
uses: WordPress/wordpress-develop/.github/workflows/reusable-phpunit-tests-v3.yml@trunk
uses: ./.github/workflows/reusable-phpunit-tests-v3.yml
permissions:
contents: read
secrets: inherit
if: ${{ github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-24 ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
db-type: [ 'mysql' ]
db-version: [ '5.7', '8.0', '8.4', '9.0' ]
Expand All @@ -54,37 +54,37 @@ jobs:

include:
# Include jobs for PHP 7.4 with memcached.
- os: ubuntu-latest
- os: ubuntu-24
php: '7.4'
db-type: 'mysql'
db-version: '5.7'
tests-domain: 'example.org'
multisite: false
memcached: true
- os: ubuntu-latest
- os: ubuntu-24
php: '7.4'
db-type: 'mysql'
db-version: '5.7'
tests-domain: 'example.org'
multisite: true
memcached: true
# Include jobs with a port on the test domain for both single and multisite.
- os: ubuntu-latest
- os: ubuntu-24
php: '7.4'
db-type: 'mysql'
db-version: '5.7'
tests-domain: 'example.org:8889'
multisite: false
memcached: false
- os: ubuntu-latest
- os: ubuntu-24
php: '7.4'
db-type: 'mysql'
db-version: '5.7'
tests-domain: 'example.org:8889'
multisite: true
memcached: false
# Report test results to the Host Test Results.
- os: ubuntu-latest
- os: ubuntu-24
db-type: 'mysql'
db-version: '8.0'
tests-domain: 'example.org'
Expand Down Expand Up @@ -123,7 +123,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-24 ]
php: [ '7.2', '7.3', '7.4', '8.0', '8.1', '8.2', '8.3', '8.4' ]
db-type: [ 'mariadb' ]
db-version: [ '10.4', '10.6', '10.11', '11.2' ]
Expand All @@ -132,13 +132,13 @@ jobs:

include:
# Include jobs for PHP 7.4 with memcached.
- os: ubuntu-latest
- os: ubuntu-24
php: '7.4'
db-type: 'mariadb'
db-version: '11.2'
multisite: false
memcached: true
- os: ubuntu-latest
- os: ubuntu-24
php: '7.4'
db-type: 'mariadb'
db-version: '11.2'
Expand Down Expand Up @@ -172,7 +172,7 @@ jobs:

failed-workflow:
name: Failed workflow tasks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
actions: write
needs: [ slack-notifications ]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/props-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# - Removes the props-bot label, if necessary.
props-bot:
name: Generate a list of props
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
# The action needs permission `write` permission for PRs in order to add a comment.
pull-requests: write
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pull-request-comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ permissions: {}
jobs:
# Comments on a pull request when the author is a first time contributor.
post-welcome-message:
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
issues: write
pull-requests: write
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
# Leaves a comment on a pull request with a link to test the changes in a WordPress Playground instance.
playground-details:
name: Comment on a pull request with Playground details
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
issues: write
pull-requests: write
Expand Down Expand Up @@ -167,7 +167,7 @@ jobs:
# Manages comments reminding contributors to include a Trac ticket link when opening a pull request.
trac-ticket-check:
name: Manage Trac ticket reminders for pull requests
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
issues: write
pull-requests: write
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-coding-standards-javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
# - Ensures version-controlled files are not modified or deleted.
jshint:
name: Run coding standards checks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
contents: read
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-coding-standards-php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
# - Ensures version-controlled files are not modified or deleted.
phpcs:
name: Run coding standards checks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
contents: read
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ jobs:
# - Ensures version-controlled files are not modified or deleted.
e2e-tests:
name: Run E2E tests
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
contents: read
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-javascript-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# - Ensures version-controlled files are not modified or deleted.
test-js:
name: Run QUnit tests
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
contents: read
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ jobs:
# - Ensure version-controlled files are not modified or deleted.
performance:
name: Run tests
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
contents: read
if: ${{ ( github.repository == 'WordPress/wordpress-develop' || github.event_name == 'pull_request' ) && ! contains( github.event.before, '00000000' ) }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-php-compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
# - Ensures version-controlled files are not modified or deleted.
php-compatibility:
name: Run compatibility checks
runs-on: ubuntu-latest
runs-on: ubuntu-24
permissions:
contents: read
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-phpunit-tests-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
description: 'Operating system to run tests on'
required: false
type: 'string'
default: 'ubuntu-latest'
default: 'ubuntu-24'
php:
description: 'The version of PHP to use, in the format of X.Y'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-phpunit-tests-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ on:
description: 'Operating system to run tests on'
required: false
type: 'string'
default: 'ubuntu-latest'
default: 'ubuntu-24'
php:
description: 'The version of PHP to use, in the format of X.Y'
required: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-phpunit-tests-v3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
description: 'Operating system to run tests on'
required: false
type: 'string'
default: 'ubuntu-latest'
default: 'ubuntu-24'
php:
description: 'The version of PHP to use, in the format of X.Y'
required: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reusable-test-core-build-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
description: 'Operating system to run tests on'
required: false
type: 'string'
default: 'ubuntu-latest'
default: 'ubuntu-24'
directory:
description: 'Directory to run WordPress from. Valid values are `src` or `build`'
required: false
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
run: git diff --exit-code

- name: Create ZIP of built files
if: ${{ inputs.directory == 'build' && 'ubuntu-latest' == inputs.os }}
if: ${{ inputs.directory == 'build' && 'ubuntu-24' == inputs.os }}
run: zip -r wordpress.zip build/.

- name: Clean after building to run from ${{ inputs.directory }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
description: 'Operating system to run tests on'
required: false
type: 'string'
default: 'ubuntu-latest'
default: 'ubuntu-24'
directory:
description: 'Directory to run WordPress from. Valid values are `src` or `build`'
required: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/reusable-upgrade-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
description: 'Operating system to run tests on.'
required: false
type: 'string'
default: 'ubuntu-latest'
default: 'ubuntu-24'
wp:
description: 'The version of WordPress to start with.'
required: true
Expand Down
Loading

0 comments on commit 3114156

Please sign in to comment.