-
Notifications
You must be signed in to change notification settings - Fork 29
96 lines (86 loc) · 2.63 KB
/
ci.yaml
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
include:
- mediawiki_version: '1.35'
smw_version: '4.2.0'
approved_revs_version: 1.8.2
php_version: 7.4
database_type: mysql
database_image: "mysql:5.7"
coverage: true
experimental: false
- mediawiki_version: '1.35'
smw_version: '4.2.0'
approved_revs_version: 1.8.2
php_version: 7.4
database_type: sqlite
coverage: false
experimental: false
- mediawiki_version: '1.39'
smw_version: '4.2.0'
approved_revs_version: 2.1
php_version: 8.1
database_type: mysql
database_image: "mysql:8"
coverage: false
experimental: false
- mediawiki_version: '1.40'
smw_version: '4.2.0'
approved_revs_version: 2.1
php_version: 8.1
database_type: mysql
database_image: "mysql:8"
coverage: true
experimental: false
- mediawiki_version: '1.41'
smw_version: dev-master
approved_revs_version: master
php_version: 8.1
database_type: mysql
database_image: "mysql:8"
coverage: false
experimental: false
- mediawiki_version: '1.42'
smw_version: '4.2.0'
approved_revs_version: master
php_version: 8.2
database_type: mysql
database_image: "mysql:8"
coverage: false
experimental: false
env:
MW_VERSION: ${{ matrix.mediawiki_version }}
SMW_VERSION: ${{ matrix.smw_version }}
AR_VERSION: ${{ matrix.approved_revs_version }}
PHP_VERSION: ${{ matrix.php_version }}
DB_TYPE: ${{ matrix.database_type }}
DB_IMAGE: ${{ matrix.database_image }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run tests
run: make ci
if: matrix.coverage == false
- name: Run tests with coverage
run: make ci-coverage
if: matrix.coverage == true
- name: Clean up after CI
if: always()
run: make destroy
- name: Upload code coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage/php/coverage.xml
if: matrix.coverage == true