Skip to content

Commit a7bc1b4

Browse files
committed
feat: Require mantle-framework/testkit on demand
1 parent f1abd36 commit a7bc1b4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/php-unit-tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
default: '--testdox'
2424
required: false
2525
type: string
26+
TESTKIT:
27+
description: Require mantle-framework/testkit package.
28+
default: false
29+
required: false
30+
type: boolean
2631
secrets:
2732
COMPOSER_AUTH_JSON:
2833
description: Authentication for privately hosted packages and repositories as a JSON formatted object.
@@ -67,6 +72,10 @@ jobs:
6772
PHP_VERSION: ${{ inputs.PHP_VERSION }}
6873
COMPOSER_CONFIG: ${{ vars.COMPOSER_CONFIG_JSON }}
6974

75+
- name: Install Testkit package
76+
if: ${{ inputs.TESTKIT == true && steps.check_files.outputs.files_exists == 'true' }}
77+
run: composer require --dev mantle-framework/testkit
78+
7079
- name: Set up problem matchers for PHPUnit
7180
if: steps.check_files.outputs.files_exists == 'true'
7281
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"

0 commit comments

Comments
 (0)