From 4e08cbd42e7eac642e573cec3aba5cf3e9771f96 Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Tue, 7 Nov 2023 16:14:14 +0800 Subject: [PATCH] MDL-79981 core: Add ability to manually run and filter phpunit on GHA --- .github/workflows/push.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index dc532e870d1..ea03d361871 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -7,6 +7,12 @@ on: - MOODLE_[0-9]+_STABLE tags-ignore: - v[0-9]+.[0-9]+.[0-9]+* + workflow_dispatch: + inputs: + phpunit_extra_options: + description: Additional options to apply to PHPUnit + required: false + default: '' env: php: 8.2 @@ -115,4 +121,4 @@ jobs: env: dbtype: ${{ matrix.db }} phpunit_options: ${{ secrets.phpunit_options }} - run: vendor/bin/phpunit $phpunit_options + run: vendor/bin/phpunit $phpunit_options ${{ inputs.phpunit_extra_options }}