Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ concurrency:
jobs:
dependabot:
name: Dependabot PR auto-merge
runs-on: ubuntu-latest
runs-on: [self-hosted]
Comment thread
dipankardas011 marked this conversation as resolved.
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Checkout
Expand Down
48 changes: 32 additions & 16 deletions .github/workflows/test-measure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ concurrency:

jobs:
lint-php:
name: 'Lint PHP'
runs-on: ubuntu-latest
name: "Lint PHP"
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6

- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
with:
php-version: '8.2'
php-version: "8.2"
coverage: none
tools: cs2pr

Expand All @@ -54,16 +54,16 @@ jobs:
run: vendor/bin/phpcs -q --report=checkstyle --runtime-set ignore_errors_on_exit 1 --runtime-set ignore_warnings_on_exit 1 | cs2pr --graceful-warnings

analyse-php:
name: 'PHPStan Analysis'
runs-on: ubuntu-latest
name: "PHPStan Analysis"
runs-on: [self-hosted]
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6

- name: Setup PHP
uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # v2.37.2
with:
php-version: '8.2'
php-version: "8.2"
coverage: none

- name: Get Composer Cache Directory
Expand All @@ -86,27 +86,35 @@ jobs:

unit-test-php:
name: "PHP ${{ matrix.php }} / WP ${{ matrix.wp }}"
runs-on: ubuntu-latest
runs-on: [self-hosted]
Comment thread
dipankardas011 marked this conversation as resolved.
strategy:
fail-fast: false
matrix:
php: ['8.2', '8.3', '8.4']
wp: ['6.5', '6.6', '6.7', '6.8', '6.9', '7.0']
php: ["8.2", "8.3", "8.4"]
wp: ["6.5", "6.6", "6.7", "6.8", "6.9", "7.0"]
exclude:
# WordPress added PHP 8.4 support in 6.7.
- { php: '8.4', wp: '6.5' }
- { php: '8.4', wp: '6.6' }
- { php: "8.4", wp: "6.5" }
- { php: "8.4", wp: "6.6" }
env:
WP_ENV_PHP_VERSION: ${{ matrix.php }}
WP_ENV_CORE: WordPress/WordPress#${{ matrix.wp }}
# Must live on the shared work emptyDir mounted by ARC's dind containerMode
# so the dind sidecar can resolve the bind-mount source paths wp-env generates.
WP_ENV_HOME: /home/runner/_work/_temp/wp-env-home
Comment on lines +102 to +104
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6

- name: Set up Docker Compose
uses: docker/setup-compose-action@4eb059ff7f16592f9c84d5ca339c53cb7c5064e2 # v2.3.0
with:
version: v2.36.2

- name: Setup Node
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '20'
node-version: "20"

- name: Install Node dependencies
run: npm ci
Expand All @@ -120,19 +128,27 @@ jobs:
run: npm run test:php

coverage-php:
name: 'PHP Coverage'
runs-on: ubuntu-latest
name: "PHP Coverage"
runs-on: [self-hosted]
env:
# Coverage is version-agnostic, so one representative cell is enough.
WP_ENV_PHP_VERSION: '8.3'
WP_ENV_PHP_VERSION: "8.3"
# Must live on the shared work emptyDir mounted by ARC's dind containerMode
# so the dind sidecar can resolve the bind-mount source paths wp-env generates.
WP_ENV_HOME: /home/runner/_work/_temp/wp-env-home
Comment on lines +135 to +138
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6

- name: Set up Docker Compose
uses: docker/setup-compose-action@4eb059ff7f16592f9c84d5ca339c53cb7c5064e2 # v2.3.0
with:
version: v2.36.2

- name: Setup Node
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: '20'
node-version: "20"

- name: Install Node dependencies
run: npm ci
Expand Down
Loading