File tree 3 files changed +33
-15
lines changed 3 files changed +33
-15
lines changed Original file line number Diff line number Diff line change @@ -10,18 +10,13 @@ jobs:
10
10
build :
11
11
runs-on : ubuntu-latest
12
12
services :
13
- mysql-service :
13
+ mysql :
14
14
image : mysql:5.7
15
15
env :
16
- MYSQL_ROOT_PASSWORD : root
17
- MYSQL_DATABASE : kalendapp_test
16
+ MYSQL_ROOT_PASSWORD : password
18
17
ports :
19
18
- 3306
20
- options : >-
21
- --health-cmd="mysqladmin ping"
22
- --health-interval=10s
23
- --health-timeout=5s
24
- --health-retries=3
19
+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
25
20
26
21
steps :
27
22
- uses : actions/checkout@v2
54
49
- name : Integration testing
55
50
run : vendor/bin/phpunit --testsuite Integration
56
51
env :
57
- DATABASE_HOST : localhost
52
+ DATABASE_HOST : 127.0.0.1
53
+ DATABASE_PORT : ${{ job.services.mysql.ports['3306'] }}
54
+ DATABASE_USER : root
55
+ DATABASE_PASSWORD : password
58
56
59
- - name : Feature test
60
- run : vendor/bin/behat
57
+ - name : Feature testing
58
+ run : vendor/bin/behat
59
+ env :
60
+ DATABASE_HOST : 127.0.0.1
61
+ DATABASE_PORT : ${{ job.services.mysql.ports['3306'] }}
62
+ DATABASE_USER : root
63
+ DATABASE_PASSWORD : password
Original file line number Diff line number Diff line change 10
10
/vendor /
11
11
# ##< symfony/framework-bundle ###
12
12
13
- # ##> friends-of-behat/symfony-extension ###
14
- /behat.yml.dist
15
- # ##< friends-of-behat/symfony-extension ###
16
-
17
13
# ##> phpunit/phpunit ###
18
14
/phpunit.xml
19
15
.phpunit.result.cache
Original file line number Diff line number Diff line change
1
+ default:
2
+ suites:
3
+ leads:
4
+ paths:
5
+ - ./tests/Features/Leads/
6
+ contexts:
7
+ - App\Tests\Shared\Infrastructure\Behat\DatabaseContext
8
+ - App\Tests\Shared\Infrastructure\Behat\ApplicationContext
9
+
10
+ extensions:
11
+ FriendsOfBehat\SymfonyExtension:
12
+ kernel:
13
+ class: App\Kernel
14
+ bootstrap: ./tests/bootstrap.php
15
+ Behat\MinkExtension:
16
+ sessions:
17
+ symfony:
18
+ symfony: ~
19
+ base_url: ''
You can’t perform that action at this time.
0 commit comments