Skip to content

Commit bf16af2

Browse files
committed
chore: Reduce test matrix to 2 WP × 2 PHP versions
1 parent e51c857 commit bf16af2

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
unit_test_plugin:
12+
name: WP Nightly / PHP 8.3
1213
runs-on: ubuntu-22.04
1314

1415
steps:
@@ -19,7 +20,8 @@ jobs:
1920
working-directory: ./plugins/faustwp
2021
run: |
2122
docker compose build \
22-
--build-arg WP_VERSION=6.5
23+
--build-arg WP_VERSION=6.8 \
24+
--build-arg PHP_VERSION=8.3
2325
docker compose up -d
2426
2527
- name: Wait for db

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ on:
99

1010
jobs:
1111
unit_test_plugin:
12-
name: WordPress ${{ matrix.wordpress }}
12+
name: WP ${{ matrix.wordpress }} / PHP ${{ matrix.php }}
1313
runs-on: ubuntu-22.04
1414
strategy:
1515
matrix:
16-
wordpress: [ '6.8', '6.7', '6.6', '6.5', '6.4', '6.3', '6.2']
16+
wordpress: ['6.8', '6.7']
17+
php: ['8.1', '8.3']
1718
steps:
1819
- name: Checkout
1920
uses: actions/checkout@v4
2021

2122
- name: Create Docker Containers
22-
env:
23-
WP_VERSION: ${{ matrix.wordpress }}
2423
working-directory: ./plugins/faustwp
2524
run: |
2625
docker compose build \
27-
--build-arg WP_VERSION=${{ matrix.wordpress }}
26+
--build-arg WP_VERSION=${{ matrix.wordpress }} \
27+
--build-arg PHP_VERSION=${{ matrix.php }}
2828
docker compose up -d
2929
3030
- name: Wait for db

plugins/faustwp/.docker/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG WP_VERSION
2+
ARG PHP_VERSION=8.2
23

3-
FROM wordpress:${WP_VERSION}-php8.2
4+
FROM wordpress:${WP_VERSION}-php${PHP_VERSION}
45

56
# Save the build args for use by the runtime environment
67
ENV WP_VERSION=${WP_VERSION}

0 commit comments

Comments
 (0)