-
-
Notifications
You must be signed in to change notification settings - Fork 14
79 lines (70 loc) · 2.43 KB
/
Copy pathmediawiki-tests.yml
File metadata and controls
79 lines (70 loc) · 2.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Call reusable MediaWiki tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
call-mediawiki-tests-workflow:
uses: miraheze/.github/.github/workflows/mediawiki-tests.yml@main
strategy:
matrix:
include:
# Latest MediaWiki stable - PHP 8.4
- mw: 'REL1_45'
php: 8.4
php-docker: 84
composer-test: true
coverage: true
experimental-phan: false
experimental-phpunit: false
# Latest MediaWiki alpha - PHP 8.4
- mw: 'REL1_46'
php: 8.4
php-docker: 84
composer-test: false
coverage: false
experimental-phan: true
experimental-phpunit: false
# Latest MediaWiki master - PHP 8.4
- mw: 'master'
php: 8.4
php-docker: 84
composer-test: false
coverage: false
experimental-phan: true
experimental-phpunit: true
with:
mw: ${{ matrix.mw }}
php: ${{ matrix.php }}
php-docker: ${{ matrix.php-docker }}
experimental-phan: ${{ matrix.experimental-phan }}
experimental-phpunit: ${{ matrix.experimental-phpunit }}
composer-test: ${{ matrix.composer-test }}
coverage: ${{ matrix.coverage }}
secrets: inherit
notify-irc:
needs: call-mediawiki-tests-workflow
runs-on: ubuntu-latest
if: ${{ always() && github.repository_owner == 'miraheze' && ( github.ref == 'refs/heads/main' || github.event_name == 'pull_request' ) }}
steps:
- name: succeeded
uses: technote-space/workflow-conclusion-action@v3
- uses: rectalogic/notify-irc@v2
if: env.WORKFLOW_CONCLUSION == 'success'
with:
channel: "#miraheze-tech-ops"
server: "irc.libera.chat"
nickname: miraheze-github
message: ${{ github.repository }} - ${{ github.actor }} the build passed.
sasl_password: ${{ secrets.IRC_MIRAHEZEBOTS }}
- name: failed
uses: technote-space/workflow-conclusion-action@v3
- uses: rectalogic/notify-irc@v2
if: env.WORKFLOW_CONCLUSION == 'failure'
with:
channel: "#miraheze-tech-ops"
server: "irc.libera.chat"
nickname: miraheze-github
message: ${{ github.repository }} - ${{ github.actor }} the build has errored.
sasl_password: ${{ secrets.IRC_MIRAHEZEBOTS }}