Skip to content

Commit 2f240e4

Browse files
committed
Test BuildTestAppAction v4 with all LTS databases
- Use BuildTestAppAction@feature/auto-database-url (v4 candidate) - Remove manual DATABASE_URL parsing (action handles it now) - Add tests for: MySQL 8.0/8.4, MariaDB 10.11/11.4, PostgreSQL 15/16/17
1 parent ddb857e commit 2f240e4

File tree

1 file changed

+27
-19
lines changed

1 file changed

+27
-19
lines changed

.github/workflows/build.yaml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,36 @@ jobs:
4040
symfony: "^7.4"
4141

4242
include:
43+
- php: "8.3"
44+
symfony: "^7.4"
45+
sylius: "~2.2.0"
46+
database: "mysql:8.0"
47+
node: "22.x"
48+
- php: "8.3"
49+
symfony: "^7.4"
50+
sylius: "~2.2.0"
51+
database: "mariadb:10.11"
52+
node: "22.x"
53+
- php: "8.3"
54+
symfony: "^7.4"
55+
sylius: "~2.2.0"
56+
database: "mariadb:11.4"
57+
node: "22.x"
58+
- php: "8.3"
59+
symfony: "^7.4"
60+
sylius: "~2.2.0"
61+
database: "postgres:15"
62+
node: "22.x"
4363
- php: "8.3"
4464
symfony: "^7.4"
4565
sylius: "~2.2.0"
4666
database: "postgres:16"
4767
node: "22.x"
68+
- php: "8.3"
69+
symfony: "^7.4"
70+
sylius: "~2.2.0"
71+
database: "postgres:17"
72+
node: "22.x"
4873

4974
env:
5075
APP_ENV: test
@@ -53,31 +78,14 @@ jobs:
5378
-
5479
uses: actions/checkout@v4
5580

56-
-
57-
name: Parse database string
58-
run: |
59-
DB_TYPE="${DATABASE%%:*}"
60-
DB_VERSION="${DATABASE##*:}"
61-
echo "DB_TYPE=$DB_TYPE" >> $GITHUB_ENV
62-
echo "DB_VERSION=$DB_VERSION" >> $GITHUB_ENV
63-
64-
if [ "$DB_TYPE" = "postgres" ]; then
65-
echo "DATABASE_URL=pgsql://postgres:postgres@127.0.0.1/sylius?serverVersion=$DB_VERSION" >> $GITHUB_ENV
66-
else
67-
echo "DATABASE_URL=mysql://root:root@127.0.0.1/sylius?serverVersion=$DB_VERSION" >> $GITHUB_ENV
68-
fi
69-
env:
70-
DATABASE: ${{ matrix.database }}
71-
7281
-
7382
name: Build Sylius Test Application
74-
uses: SyliusLabs/BuildTestAppAction@v3.2.0
83+
uses: SyliusLabs/BuildTestAppAction@v4
7584
with:
7685
e2e_js: "yes"
7786
cache_key: "${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }}"
7887
cache_restore_key: "${{ runner.os }}-php-${{ matrix.php }}-composer-"
79-
database: "${{ env.DB_TYPE }}"
80-
database_version: "${{ env.DB_VERSION }}"
88+
database: "${{ matrix.database }}"
8189
node_version: "${{ matrix.node }}"
8290
php_version: "${{ matrix.php }}"
8391
sylius_version: "${{ matrix.sylius }}"

0 commit comments

Comments
 (0)