-
Notifications
You must be signed in to change notification settings - Fork 46
146 lines (108 loc) · 4.21 KB
/
main.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
name: CI
on: [push, pull_request]
jobs:
codeception3:
runs-on: ubuntu-latest
strategy:
matrix:
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4]
env:
extensions: zip
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Use Composer v1
run: composer self-update --1
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: |
composer require codeception/codeception:"^3.0" --dev --prefer-source
cp c3.php vendor/codeception/codeception/tests/data/claypit
- name: Start PHP Server
run: |
cd vendor/codeception/codeception && php -S 127.0.0.1:8000 -t tests/data/app -d pcov.directory=$(pwd)/tests/data/app >/dev/null 2>&1 &
- name: Run test suite
run: cd vendor/codeception/codeception && php ./codecept run coverage
composer1:
runs-on: ubuntu-latest
strategy:
matrix:
php: [5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Use Composer v1
run: composer self-update --1
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: |
composer require codeception/codeception:"^4.2" --dev --prefer-source
composer require codeception/module-filesystem:"^1.0" codeception/module-cli:"^1.0" codeception/module-asserts:"^1.0|^2.0" codeception/module-phpbrowser:"^1.0" --dev
cp c3.php vendor/codeception/codeception/tests/data/claypit
- name: Start PHP Server
run: |
cd vendor/codeception/codeception && php -S 127.0.0.1:8000 -t tests/data/app -d pcov.directory=$(pwd)/tests/data/app >/dev/null 2>&1 &
- name: Run test suite
run: cd vendor/codeception/codeception && php ./codecept run coverage
composer2:
runs-on: ubuntu-latest
strategy:
matrix:
php: [7.2, 7.3, 7.4, 8.0, 8.1]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Use Composer v2
run: composer self-update --2
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: |
composer require codeception/codeception:"^4.1" --dev --prefer-source
composer require codeception/module-filesystem:"^1.0" codeception/module-cli:"^1.0" codeception/module-asserts:"^1.0|^2.0" codeception/module-phpbrowser:"^1.0" --dev
cp c3.php vendor/codeception/codeception/tests/data/claypit
- name: Start PHP Server
run: |
cd vendor/codeception/codeception && php -S 127.0.0.1:8000 -t tests/data/app -d pcov.directory=$(pwd)/tests/data/app >/dev/null 2>&1 &
- name: Run test suite
run: cd vendor/codeception/codeception && php ./codecept run coverage
codeception5:
runs-on: ubuntu-latest
strategy:
matrix:
php: [8.0, 8.1, 8.2]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Use Composer v2
run: composer self-update --2
- name: Validate composer.json
run: composer validate
- name: Install dependencies
run: |
composer require codeception/codeception:"^5.0" --dev --prefer-source
composer require codeception/module-filesystem:"^3.0" codeception/module-cli:"^2.0" codeception/module-asserts:"^3.0" codeception/module-phpbrowser:"^3.0" --dev
cp c3.php vendor/codeception/codeception/tests/data/claypit
- name: Start PHP Server
run: |
cd vendor/codeception/codeception && php -S 127.0.0.1:8008 -t tests/data/app -d pcov.directory=$(pwd)/tests/data/app >/dev/null 2>&1 &
- name: Run test suite
run: cd vendor/codeception/codeception && php ./codecept run coverage