Skip to content

Commit f5d3b54

Browse files
committed
Updating action. Not complete.
1 parent 4167311 commit f5d3b54

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/actions/codeception/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ inputs:
77
php:
88
description: 'PHP version'
99
required: true
10+
extensions:
11+
description: 'PHP extensions'
12+
required: true
1013
wordpress:
1114
description: 'WordPress version'
1215
required: true
@@ -25,3 +28,20 @@ runs:
2528
with:
2629
working-directory: ${{ inputs.working-directory }}
2730
composer-options: "--no-progress"
31+
32+
- name: Setup environment
33+
run: |
34+
cp ${{ inputs.working-directory }}/.docker/.env.ci ${{ inputs.working-directory }}/.env
35+
cd ${{ inputs.working-directory }}
36+
echo "INCLUDE_EXTENSIONS=${{ inputs.extensions }}" >> .env
37+
echo "WP_VERSION=${{ inputs.wordpress }}" >> .env
38+
echo "PHP_VERSION=${{ inputs.php }}" >> .env
39+
shell: bash
40+
41+
- name: Build test environment
42+
run: composer run docker:build
43+
shell: bash
44+
working-directory: ${{ inputs.working-directory }}
45+
env:
46+
WP_VERSION: ${{ inputs.wordpress }}
47+
PHP_VERSION: ${{ inputs.php }}

.github/workflows/codeception.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
uses: ./.github/actions/codeception
6969
with:
7070
working-directory: plugins/${{ steps.plugin.outputs.slug }}
71+
extensions: ["json", "mbstring"]
7172
php: ${{ matrix.php }}
7273
wordpress: ${{ matrix.wordpress }}
7374
coverage: 1

0 commit comments

Comments
 (0)