Skip to content

Commit

Permalink
Use the include directive
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbalandan committed Apr 15, 2021
1 parent 36a43f3 commit cbf7c63
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/test-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ jobs:
matrix:
php-versions: ['7.3', '7.4', '8.0']
db-platforms: ['MySQLi', 'Postgre', 'SQLite3', 'SQLSRV']
include:
- php-versions: '7.3'
mssql: 'server:2017-latest'
- php-versions: '7.4'
mssql: 'server:2017-latest'
- php-versions: '8.0'
mssql: 'server:2019-latest'

services:
mysql:
Expand All @@ -62,13 +69,14 @@ jobs:
- 5432:5432
options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3
mssql:
image: mcr.microsoft.com/mssql/server:2017-latest
image: mcr.microsoft.com/mssql/${{ matrix.mssql }}
env:
SA_PASSWORD: 1Secure*Password1
ACCEPT_EULA: Y
MSSQL_PID: Developer
ports:
- 1433:1433
options: --name=mssql --health-cmd="/opt/mssql-tools/bin/sqlcmd -S 127.0.0.1,1433 -U SA -P '1Secure*Password1' -Q 'SELECT 1'" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
Expand All @@ -82,7 +90,7 @@ jobs:
steps:
- name: Create database for MSSQL Server
if: matrix.db-platforms == 'SQLSRV'
run: sqlcmd -S 127.0.0.1,1433 -U sa -P 1Secure*Password1 -Q "CREATE DATABASE test"
run: docker exec -i mssql /opt/mssql-tools/bin/sqlcmd -S 127.0.0.1,1433 -U SA -P '1Secure*Password1' -Q 'CREATE DATABASE test'

- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit cbf7c63

Please sign in to comment.