-
-
Notifications
You must be signed in to change notification settings - Fork 1
122 lines (98 loc) · 3.06 KB
/
php82.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
name: Build PHP 8.2
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ${{ matrix.os }}
services:
sql.data:
image: mcr.microsoft.com/mssql/server:2019-latest
env:
SA_PASSWORD: 1234567890@Eu
ACCEPT_EULA: Y
MSSQL_PID: Express
ports:
- "1433:1433"
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [8.2]
name: PHP${{matrix.php}} - ${{matrix.os}}
steps:
- name: Clone Repo
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mysqli, mbstring, sqlsrv
tools: phpunit:9.5.20, composer, symplify/easy-coding-standard:12.0.6, phpbench/phpbench:1.2.14
- name: Shutdown Ubuntu MySQL
run: sudo service mysql stop
- name: Set up MySQL
uses: mirromutth/[email protected]
with:
mysql version: '5.7'
mysql database: 'testing_db'
mysql root password: 123456
mysql user: 'root'
mysql password: 123456
- name: Wait for MySQL
run: |
while ! mysqladmin ping --host=127.0.0.1 --password=123456 --silent; do
sleep 1
done
- name: Setup MSSQL
run: sqlcmd -S localhost -U SA -P 1234567890@Eu -Q 'create database testing_db'
- name: Install Dependencies
run: composer install --prefer-dist --no-interaction --no-dev
- name: Execute Tests
run: phpunit
- name: CodeCov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
coding_standards_check:
name: "Coding Standards Check"
needs:
- "test"
runs-on: "ubuntu-latest"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.1"
extensions: "mbstring"
tools: composer, symplify/easy-coding-standard:12.0.6
- name: "Checkout code"
uses: "actions/checkout@v3"
- name: Install Dependencies
run: composer install --prefer-dist --no-interaction --no-dev
- name: "Check Style"
run: "ecs check"
benchmarking:
needs:
- "test"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
php: [8.0,8.1,8.2]
steps:
- name: Clone Repo
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: mbstring
tools: composer, phpbench/phpbench
- name: Install Dependencies
run: composer install --prefer-dist --no-interaction --no-dev
- name: Benchmarking
run: phpbench run tests/webfiori/benchmark --report=default