-
-
Notifications
You must be signed in to change notification settings - Fork 4
139 lines (122 loc) · 3.79 KB
/
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
on:
pull_request:
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.head_ref || 'cron' }}
cancel-in-progress: true
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
php-version:
- '8.2'
- '8.1'
- '8.0'
- '7.4'
- '7.3'
- '7.2'
- '7.1'
- '7.0'
mockery-version:
- '1.6.0'
- '1.5.0'
- '1.4.0'
- '1.3.0'
- '1.2.0'
- '1.1.0'
- '1.0.0'
- '0.9.0'
- '0.8.0'
exclude:
# PHP 8.2 Exclusions
- php-version: '8.2'
mockery-version: '1.3.0'
- php-version: '8.2'
mockery-version: '1.2.0'
- php-version: '8.2'
mockery-version: '1.1.0'
- php-version: '8.2'
mockery-version: '1.0.0'
- php-version: '8.2'
mockery-version: '0.9.0'
- php-version: '8.2'
mockery-version: '0.8.0'
# PHP 8.1 Exclusions
- php-version: '8.1'
mockery-version: '1.3.0'
- php-version: '8.1'
mockery-version: '1.2.0'
- php-version: '8.1'
mockery-version: '1.1.0'
- php-version: '8.1'
mockery-version: '1.0.0'
- php-version: '8.1'
mockery-version: '0.9.0'
- php-version: '8.1'
mockery-version: '0.8.0'
# PHP 8.0 Exclusions
- php-version: '8.0'
mockery-version: '1.1.0'
- php-version: '8.0'
mockery-version: '1.0.0'
- php-version: '8.0'
mockery-version: '0.9.0'
- php-version: '8.0'
mockery-version: '0.8.0'
# PHP 7.4 Exclusions
- php-version: '7.4'
mockery-version: '1.1.0'
- php-version: '7.4'
mockery-version: '1.0.0'
- php-version: '7.4'
mockery-version: '0.9.0'
- php-version: '7.4'
mockery-version: '0.8.0'
# PHP 7.3 Exclusions
- php-version: '7.3'
mockery-version: '1.6.0'
# PHP 7.2 Exclusions
- php-version: '7.2'
mockery-version: '1.6.0'
- php-version: '7.2'
mockery-version: '1.5.0'
- php-version: '7.2'
mockery-version: '1.4.0'
# PHP 7.1 Exclusions
- php-version: '7.1'
mockery-version: '1.6.0'
- php-version: '7.1'
mockery-version: '1.5.0'
- php-version: '7.1'
mockery-version: '1.4.0'
# PHP 7.0 Exclusions
- php-version: '7.0'
mockery-version: '1.6.0'
- php-version: '7.0'
mockery-version: '1.5.0'
- php-version: '7.0'
mockery-version: '1.4.0'
name: Mockery ${{ matrix.mockery-version }} on PHP ${{ matrix.php-version }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
ini-values: zend.assertions=1
- name: Install Dependencies
run: composer require mockery/mockery:~${{ matrix.mockery-version }} squizlabs/php_codesniffer phpmd/phpmd cundd/test-flight
- name: PHPUnit
run: vendor/bin/phpunit
- name: Test Flight
if: matrix.php-version != '8.1' && matrix.php-version != '8.2'
run: |
vendor/bin/test-flight README.md
vendor/bin/test-flight classes/
- name: PHPCS
run: vendor/bin/phpcs --standard=PSR2 classes/ tests/
- name: PHPMD
run: vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode