Skip to content

Commit 3432130

Browse files
committed
workflows tests 3
1 parent fa02bf1 commit 3432130

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/symfony.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
16
name: Symfony
27

38
on:
@@ -12,16 +17,10 @@ permissions:
1217
jobs:
1318
symfony-tests:
1419
runs-on: ubuntu-latest
15-
services:
16-
mariadb:
17-
image: mariadb:11
18-
options: --health-cmd "mysqladmin ping --silent" --health-interval 10s --health-timeout 5s --health-retries 3
19-
env:
20-
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'yes'
21-
MYSQL_DATABASE: fphp8
22-
ports:
23-
- 3307:3307
2420
steps:
21+
# To automatically get bug fixes and new Php versions for shivammathur/setup-php,
22+
# change this to (see https://github.com/shivammathur/setup-php#bookmark-versioning):
23+
# uses: shivammathur/setup-php@v2
2524
- uses: shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
2625
with:
2726
php-version: '8.2'
@@ -40,8 +39,9 @@ jobs:
4039
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
4140
- name: Create Database
4241
run: |
43-
mysql -h 127.0.0.1 -u root -proot -e "CREATE DATABASE IF NOT EXISTS fphp8;"
42+
mkdir -p data
43+
touch data/database.sqlite
4444
- name: Execute tests (Unit and Feature tests) via PHPUnit
4545
env:
46-
DATABASE_URL: mysql://root:[email protected]:3306/fphp8
47-
run: vendor/bin/phpunit
46+
DATABASE_URL: sqlite:///%kernel.project_dir%/data/database.sqlite
47+
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)