Skip to content

Commit cced0bf

Browse files
committed
Enable sqlserver service in CI and configure git safe.directory setup in workflow steps
1 parent da39a63 commit cced0bf

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/phpunit.yml

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,18 @@ jobs:
4545
--health-interval 10s
4646
--health-timeout 5s
4747
--health-retries 5
48-
# sqlserver:
49-
# image: mcr.microsoft.com/mssql/server
50-
# env:
51-
# ACCEPT_EULA: Y
52-
# SA_PASSWORD: Pa55word
53-
# ports:
54-
# - "1433:1433"
55-
# options: >-
56-
# --health-cmd "/opt/mssql-tools/bin/sqlcmd -U sa -P Pa55word -Q 'SELECT 1'"
57-
# --health-interval 10s
58-
# --health-timeout 5s
59-
# --health-retries 5
48+
sqlserver:
49+
image: mcr.microsoft.com/mssql/server
50+
env:
51+
ACCEPT_EULA: Y
52+
SA_PASSWORD: Pa55word
53+
ports:
54+
- "1433:1433"
55+
options: >-
56+
--health-cmd "/opt/mssql-tools/bin/sqlcmd -U sa -P Pa55word -Q 'SELECT 1'"
57+
--health-interval 10s
58+
--health-timeout 5s
59+
--health-retries 5
6060
6161
env:
6262
MYSQL_TEST_HOST: mysql
@@ -65,6 +65,8 @@ jobs:
6565

6666
steps:
6767
- uses: actions/checkout@v5
68+
- name: Configure git safe directory
69+
run: git config --global --add safe.directory /__w/php-migration/php-migration
6870
- run: composer install
6971
- run: composer test
7072
- run: ./vendor/bin/phpunit tests/SqliteDatabase*
@@ -85,6 +87,9 @@ jobs:
8587
- name: Git checkout
8688
uses: actions/checkout@v4
8789

90+
- name: Configure git safe directory
91+
run: git config --global --add safe.directory /__w/php-migration/php-migration
92+
8893
- name: Composer
8994
run: composer install
9095

0 commit comments

Comments
 (0)