From 1ee7f4cc6c0c751e2c49a43110a1671f7400897e Mon Sep 17 00:00:00 2001 From: Maximilian Haye Date: Mon, 29 Jul 2024 18:04:15 +0200 Subject: [PATCH] ci: update moodle-plugin-ci --- .github/workflows/moodle-ci.yml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 45e6d99d..86d10794 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -73,11 +73,6 @@ jobs: if: ${{ !cancelled() }} run: moodle-plugin-ci phplint - - name: PHP Copy/Paste Detector - continue-on-error: true # This step will show errors but will not fail - if: ${{ !cancelled() }} - run: moodle-plugin-ci phpcpd - - name: PHP Mess Detector continue-on-error: true # This step will show errors but will not fail if: ${{ !cancelled() }} @@ -112,9 +107,19 @@ jobs: run: moodle-plugin-ci phpunit --fail-on-warning - name: Behat features + id: behat if: ${{ !cancelled() }} run: moodle-plugin-ci behat --profile chrome + - name: Upload Behat Faildump + if: ${{ failure() && steps.behat.outcome == 'failure' }} + uses: actions/upload-artifact@v4 + with: + name: Behat Faildump (${{ join(matrix.*, ', ') }}) + path: ${{ github.workspace }}/moodledata/behat_dump + retention-days: 7 + if-no-files-found: ignore + - name: Mark cancelled jobs as failed. if: ${{ cancelled() }} run: exit 1