Skip to content
Draft
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
4 changes: 3 additions & 1 deletion .github/workflows/unit-test-plugin-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:

jobs:
unit_test_plugin:
name: WP Nightly / PHP 8.3
runs-on: ubuntu-22.04

steps:
Expand All @@ -19,7 +20,8 @@ jobs:
working-directory: ./plugins/faustwp
run: |
docker compose build \
--build-arg WP_VERSION=6.5
--build-arg WP_VERSION=6.8 \
--build-arg PHP_VERSION=8.3
docker compose up -d

- name: Wait for db
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/unit-test-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ on:

jobs:
unit_test_plugin:
name: WordPress ${{ matrix.wordpress }}
name: WP ${{ matrix.wordpress }} / PHP ${{ matrix.php }}
runs-on: ubuntu-22.04
strategy:
matrix:
wordpress: [ '6.8', '6.7', '6.6', '6.5', '6.4', '6.3', '6.2']
wordpress: ['6.8', '6.7']
php: ['8.1', '8.3']
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Create Docker Containers
env:
WP_VERSION: ${{ matrix.wordpress }}
working-directory: ./plugins/faustwp
run: |
docker compose build \
--build-arg WP_VERSION=${{ matrix.wordpress }}
--build-arg WP_VERSION=${{ matrix.wordpress }} \
--build-arg PHP_VERSION=${{ matrix.php }}
docker compose up -d

- name: Wait for db
Expand Down
3 changes: 2 additions & 1 deletion plugins/faustwp/.docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ARG WP_VERSION
ARG PHP_VERSION=8.2

FROM wordpress:${WP_VERSION}-php8.2
FROM wordpress:${WP_VERSION}-php${PHP_VERSION}

# Save the build args for use by the runtime environment
ENV WP_VERSION=${WP_VERSION}
Expand Down
3 changes: 1 addition & 2 deletions plugins/faustwp/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3.6'

services:
wordpress:
build:
Expand Down Expand Up @@ -27,6 +25,7 @@ services:
db:
image: mysql:8
restart: always
command: --default-authentication-plugin=mysql_native_password
ports:
- 33066:3306
environment:
Expand Down
Loading