Skip to content

Commit 4e90f9d

Browse files
committed
refactor(ci): consolidate test-plugin and nightly into single workflow
Merge test-plugin-nightly.yml into test-plugin.yml using a matrix include entry. The nightly build (PHP 8.2, WP nightly) now runs alongside the standard PHP × WP matrix as a single workflow. This eliminates the near-duplicate workflow file and makes it easier to maintain the test matrix in one place. Relates to #411, #374
1 parent 1e20177 commit 4e90f9d

2 files changed

Lines changed: 12 additions & 54 deletions

File tree

.github/workflows/test-plugin-nightly.yml

Lines changed: 0 additions & 53 deletions
This file was deleted.

.github/workflows/test-plugin.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,13 @@ jobs:
1313
matrix:
1414
php: [ '8.3', '8.1' ]
1515
wordpress: [ '6.9', '6.8', '6.7', '6.6' ]
16+
wp-nightly: [ false ]
17+
include:
18+
- php: '8.2'
19+
wordpress: '6.9'
20+
wp-nightly: true
1621
fail-fast: false
17-
name: WordPress ${{ matrix.wordpress }}, PHP ${{ matrix.php }}
22+
name: WordPress ${{ matrix.wp-nightly && 'Nightly' || matrix.wordpress }}, PHP ${{ matrix.php }}
1823
steps:
1924
- name: Checkout
2025
uses: actions/checkout@v4
@@ -42,6 +47,12 @@ jobs:
4247
working-directory: ./
4348
run: docker exec -e COVERAGE=1 $(docker compose ps -q wordpress) init-testing-environment.sh
4449

50+
- name: Upgrade to WordPress nightly
51+
if: matrix.wp-nightly
52+
run: |
53+
docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks \
54+
$(docker compose ps -q wordpress) wp core upgrade --version=nightly --force --allow-root
55+
4556
- name: Install and activate WP GraphQL
4657
working-directory: ./
4758
run: docker exec --workdir=/var/www/html/wp-content/plugins/wp-graphql-content-blocks $(docker compose ps -q wordpress) wp plugin install wp-graphql --activate --allow-root

0 commit comments

Comments
 (0)