From 28c0b1da10cfb49787e118ef279c18832bd508f5 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 5dddd877269..7cd071bbb8c 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.0 @@ -114,4 +120,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 }}