Skip to content

Commit b55af9e

Browse files
test: improve CI workflow
1 parent 8f25e67 commit b55af9e

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/moodle-ci.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Moodle Plugin CI Tests
33
# The workflow is triggered on push to the stable branch, main branch, pull requests and every day at 6:30 UTC.
44
on:
55
workflow_dispatch:
6+
inputs:
7+
tags:
8+
description: 'Adds an additional tags to the tests. It needs the && to concat other tags and a starting @. Usage: "&&@mtmoodle-x"'
9+
required: false
10+
default: ''
611
push:
712
branches:
813
- stable
@@ -198,7 +203,7 @@ jobs:
198203
continue-on-error: true
199204
run: |
200205
moodle-plugin-ci add-plugin --branch ${{ env.BRANCH_NAME }}wiris/moodle-qtype_wq
201-
- name: Add Wiris Quizzes plugin using the stable branch
206+
- name: Add Wiris Quizzes plugin using the main branch
202207
if: steps.install-plugin-quizzes.outcome != 'success'
203208
run: |
204209
moodle-plugin-ci add-plugin --branch main wiris/moodle-qtype_wq
@@ -226,7 +231,6 @@ jobs:
226231
# Run Behat tests on all Moodle branches.
227232
- name: Behat features for ( ${{ matrix.moodle-branch }} on PHP ${{ matrix.php }} )
228233
id: behat
229-
if: ${{ always() }}
230234
run: |
231235
case "${{ matrix.moodle-branch }}" in
232236
"MOODLE_38_STABLE"|"MOODLE_39_STABLE"|"MOODLE_311_STABLE")
@@ -242,7 +246,8 @@ jobs:
242246
TAG="@filter"
243247
;;
244248
esac
245-
moodle-plugin-ci behat --tags=$TAG --profile ${{ matrix.browser }} --auto-rerun=2 --verbose -vvv
249+
moodle-plugin-ci behat --tags=$TAG${{ github.event.inputs.tags }} --profile ${{ matrix.browser }} --auto-rerun=2 --verbose -vvv
250+
246251
- name: Upload Behat Faildump
247252
if: ${{ failure() && steps.behat.outcome == 'failure' }}
248253
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)