@@ -17,78 +17,18 @@ jobs:
1717
1818 name : PHP ${{ matrix.php }} tests
1919
20- services :
21- mysql57 :
22- image : mysql:5.7
23- env :
24- MYSQL_DATABASE : nette_test
25- MYSQL_ROOT_PASSWORD : root
26- ports :
27- - 3306:3306
28- options : >-
29- --health-cmd "mysqladmin ping -ppass"
30- --health-interval 10s
31- --health-start-period 10s
32- --health-timeout 5s
33- --health-retries 10
34-
35- mysql80 :
36- image : mysql:8.0
37- ports :
38- - 3307:3306
39- options : >-
40- --health-cmd="mysqladmin ping -ppass"
41- --health-interval=10s
42- --health-timeout=5s
43- --health-retries=5
44- -e MYSQL_ROOT_PASSWORD=root
45- -e MYSQL_DATABASE=nette_test
46-
47- postgres96 :
48- image : postgres:9.6
49- env :
50- POSTGRES_USER : postgres
51- POSTGRES_PASSWORD : postgres
52- POSTGRES_DB : nette_test
53- ports :
54- - 5432:5432
55- options : >-
56- --health-cmd pg_isready
57- --health-interval 10s
58- --health-timeout 5s
59- --health-retries 5
20+ steps :
21+ - uses : actions/checkout@v6
6022
61- postgres13 :
62- image : postgres:13
63- env :
64- POSTGRES_USER : postgres
65- POSTGRES_PASSWORD : postgres
66- POSTGRES_DB : nette_test
67- ports :
68- - 5433:5432
69- options : >-
70- --health-cmd pg_isready
71- --health-interval 10s
72- --health-timeout 5s
73- --health-retries 5
23+ - name : Start database containers
24+ run : docker compose up -d --wait --quiet-pull
7425
75- mssql :
76- image : mcr.microsoft.com/mssql/server:latest
77- env :
78- ACCEPT_EULA : Y
79- SA_PASSWORD : YourStrong!Passw0rd
80- MSSQL_PID : Developer
81- ports :
82- - 1433:1433
83- options : >-
84- --name=mssql
85- --health-cmd "/opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'SELECT 1' -N -C"
86- --health-interval 10s
87- --health-timeout 5s
88- --health-retries 5
26+ - name : Create MS SQL Database
27+ run : |
28+ docker compose exec -T mssql /opt/mssql-tools18/bin/sqlcmd \
29+ -S localhost -U SA -P 'YourStrong!Passw0rd' \
30+ -Q 'CREATE DATABASE nette_test' -N -C
8931
90- steps :
91- - uses : actions/checkout@v4
9232 - uses : shivammathur/setup-php@v2
9333 with :
9434 php-version : ${{ matrix.php }}
9737 coverage : none
9838
9939 - name : Create databases.ini
100- run : cp ./tests/databases.github.ini ./tests/Database/databases.ini
101-
102- - name : Create MS SQL Database
103- run : docker exec -i mssql /opt/mssql-tools18/bin/sqlcmd -S localhost -U SA -P 'YourStrong!Passw0rd' -Q 'CREATE DATABASE nette_test' -N -C
40+ run : cp ./tests/databases.docker.ini ./tests/Database/databases.ini
10441
10542 - run : composer install --no-progress --prefer-dist
10643 - run : composer tester
11552 name : Lowest Dependencies
11653 runs-on : ubuntu-latest
11754 steps :
118- - uses : actions/checkout@v4
55+ - uses : actions/checkout@v6
11956 - uses : shivammathur/setup-php@v2
12057 with :
12158 php-version : 8.1
0 commit comments