Commit 3432130 1 parent fa02bf1 commit 3432130 Copy full SHA for 3432130
File tree 1 file changed +12
-12
lines changed
1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change
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
+
1
6
name : Symfony
2
7
3
8
on :
@@ -12,16 +17,10 @@ permissions:
12
17
jobs :
13
18
symfony-tests :
14
19
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
24
20
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
25
24
- uses : shivammathur/setup-php@2cb9b829437ee246e9b3cac53555a39208ca6d28
26
25
with :
27
26
php-version : ' 8.2'
40
39
run : composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
41
40
- name : Create Database
42
41
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
44
44
- name : Execute tests (Unit and Feature tests) via PHPUnit
45
45
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
You can’t perform that action at this time.
0 commit comments