Skip to content

Commit 94b415e

Browse files
committed
update workflow
1 parent d445a7e commit 94b415e

1 file changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/moodle-ci.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88

99
services:
1010
postgres:
11-
image: postgres:13
11+
image: postgres:15
1212
env:
1313
POSTGRES_USER: 'postgres'
1414
POSTGRES_HOST_AUTH_METHOD: 'trust'
@@ -36,7 +36,7 @@ jobs:
3636

3737
steps:
3838
- name: Check out repository code
39-
uses: actions/checkout@v3
39+
uses: actions/checkout@v4
4040
with:
4141
path: plugin
4242

@@ -70,11 +70,6 @@ jobs:
7070
if: ${{ !cancelled() }}
7171
run: moodle-plugin-ci phplint
7272

73-
- name: PHP Copy/Paste Detector
74-
continue-on-error: true # This step will show errors but will not fail
75-
if: ${{ !cancelled() }}
76-
run: moodle-plugin-ci phpcpd
77-
7873
- name: PHP Mess Detector
7974
continue-on-error: true # This step will show errors but will not fail
8075
if: ${{ !cancelled() }}
@@ -109,9 +104,19 @@ jobs:
109104
run: moodle-plugin-ci phpunit --fail-on-warning
110105

111106
- name: Behat features
107+
id: behat
112108
if: ${{ !cancelled() }}
113-
run: moodle-plugin-ci behat --profile chrome
109+
run: moodle-plugin-ci behat --profile chrome --scss-deprecations
110+
111+
- name: Upload Behat Faildump
112+
if: ${{ failure() && steps.behat.outcome == 'failure' }}
113+
uses: actions/upload-artifact@v4
114+
with:
115+
name: Behat Faildump (${{ join(matrix.*, ', ') }})
116+
path: ${{ github.workspace }}/moodledata/behat_dump
117+
retention-days: 7
118+
if-no-files-found: ignore
114119

115120
- name: Mark cancelled jobs as failed.
116121
if: ${{ cancelled() }}
117-
run: exit 1
122+
run: exit 1

0 commit comments

Comments
 (0)