-
Notifications
You must be signed in to change notification settings - Fork 9
94 lines (84 loc) · 2.34 KB
/
testing.yml
File metadata and controls
94 lines (84 loc) · 2.34 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Testing
on:
workflow_dispatch:
push:
branches:
- main
- master
pull_request:
schedule:
- cron: '0 0 * * *' # Run every day at midnight.
jobs:
functional:
name: ${{ matrix.test-package }}
strategy:
fail-fast: false
matrix:
php: ['7.2', '8.5']
wp: ['latest', 'trunk']
dbtype: ['mysql', 'sqlite']
object_cache: ['none', 'sqlite']
use-phar: [false, true]
test-package:
- wp-cli-bundle
- wp-cli
- ability-command
- ai-command
- block-command
- cache-command
- checksum-command
- config-command
- core-command
- cron-command
- db-command
- embed-command
- entity-command
- eval-command
- export-command
- extension-command
- i18n-command
- import-command
- language-command
- maintenance-mode-command
- media-command
- package-command
- rewrite-command
- role-command
- scaffold-command
- search-replace-command
- server-command
- shell-command
- site-health-command
- super-admin-command
- widget-command
exclude:
# Object cache runs only on sqlite dbtype
- dbtype: mysql
object_cache: sqlite
# SQLite runs only on WP latest and PHP 8.5
- dbtype: sqlite
wp: trunk
- dbtype: sqlite
php: '7.2'
# Object cache runs only with WP latest
- object_cache: sqlite
wp: trunk
# A1: object_cache=sqlite only on PHP 8.5
- php: '7.2'
object_cache: sqlite
# Phar usage match defaults
- use-phar: true
wp: trunk
- use-phar: false
wp: latest
# Limit ancient php on trunk
- php: '7.2'
wp: trunk
uses: ./.github/workflows/reusable-testing.yml
with:
test-package: ${{ matrix.test-package }}
php: ${{ matrix.php }}
wp: ${{ matrix.wp }}
dbtype: ${{ matrix.dbtype }}
object_cache: ${{ matrix.object_cache }}
use-phar: ${{ matrix.use-phar }}