-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
148 lines (143 loc) · 3.89 KB
/
matomo-tests.yml
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
# Action for running tests
# This file has been automatically created.
# To recreate it you can run this command
# ./console generate:test-action --php-versions="7.2,8.2"
name: Matomo Tests
on:
pull_request:
types: [opened, synchronize]
push:
branches:
- '**.x-dev'
- 'next_release'
workflow_dispatch:
workflow_call:
inputs:
is_preview:
type: boolean
required: false
default: false
ref:
type: string
required: false
default: ''
secrets:
ARTIFACTS_PASS:
required: false
TESTOMATIO_INTEGRATION:
required: false
permissions:
actions: read
checks: none
contents: read
deployments: none
issues: read
packages: none
pull-requests: read
repository-projects: none
security-events: none
statuses: none
concurrency:
group: php-${{ inputs.ref || github.ref }}
cancel-in-progress: true
jobs:
PHP:
runs-on: ubuntu-20.04
strategy:
fail-fast: ${{ inputs.is_preview == true }}
matrix:
type: [ 'UnitTests', 'SystemTestsPlugins', 'SystemTestsCore', 'IntegrationTestsCore', 'IntegrationTestsPlugins' ]
php: [ '7.2', '8.2', '8.4' ]
engine: [ 'Mysql', 'Mariadb' ]
adapter: [ 'PDO_MYSQL', 'MYSQLI' ]
exclude:
- php: '7.2'
engine: 'Mariadb'
- php: '8.2'
engine: 'Mysql'
- php: '8.4'
engine: 'Mariadb'
- php: '7.2'
adapter: 'MYSQLI'
- php: '8.2'
adapter: 'MYSQLI'
- php: '8.4'
adapter: 'PDO_MYSQL'
steps:
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
test-type: ${{ matrix.type }}
mysql-driver: ${{ matrix.adapter }}
mysql-engine: ${{ matrix.engine }}
php-version: ${{ matrix.php }}
redis-service: true
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }}
upload-artifacts: ${{ matrix.php == '7.2' }}
testomatio: ${{ secrets.TESTOMATIO_INTEGRATION }}
Javascript:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
test-type: 'JS'
php-version: '7.2'
node-version: '12'
Client:
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
with:
lfs: false
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
test-type: 'Client'
node-version: '16'
mysql-service: false
UI:
runs-on: ubuntu-20.04
strategy:
fail-fast: ${{ inputs.is_preview == true }}
matrix:
parts: [ 0,1,2,3 ]
steps:
- uses: actions/checkout@v4
with:
lfs: true
persist-credentials: false
submodules: true
path: matomo
ref: ${{ inputs.ref || github.ref }}
- name: running tests
uses: matomo-org/github-action-tests@main
with:
ui-test-options: '--num-test-groups=4 --test-group=${{ matrix.parts }}'
test-type: 'UI'
php-version: '7.2'
node-version: '16'
redis-service: true
artifacts-pass: ${{ secrets.ARTIFACTS_PASS }}
upload-artifacts: true
testomatio: ${{ secrets.TESTOMATIO }}