10
10
build-tests :
11
11
runs-on : ubuntu-latest
12
12
13
- # Docs: https://docs.github.com/en/actions/using-containerized-services
14
13
services :
15
14
mysql :
16
15
image : mysql:8.0
19
18
MYSQL_ROOT_PASSWORD : password
20
19
MYSQL_DATABASE : talentpulse
21
20
ports :
22
- - 3306/tcp
21
+ - 3306:3306
23
22
options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
24
23
25
24
redis :
40
39
extensions : mbstring, dom, fileinfo, mysql
41
40
coverage : xdebug
42
41
43
- # Local MySQL service in GitHub hosted environments is disabled by default.
44
- # If you are using it instead of service containers, make sure you start it.
45
- # - name: Start mysql service
46
- # run: sudo systemctl start mysql.service
47
-
48
42
- name : Get composer cache directory
49
43
id : composer-cache
50
44
run : echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
@@ -66,22 +60,13 @@ jobs:
66
60
- name : Clear Config
67
61
run : php artisan config:clear
68
62
69
- # - name: Run Migration
70
- # run: php artisan migrate -v
71
- # env:
72
- # DB_PORT: ${{ job.services.mysql.ports['3306'] }}
73
- # REDIS_PORT: ${{ job.services.redis.ports['6379'] }}
74
-
75
63
- name : Test code style pint
76
64
run : composer run pint-test
77
65
78
66
- name : Test with phpunit
79
67
run : composer run tests:coverage
80
- env :
81
- DB_PORT : ${{ job.services.mysql.ports['3306'] }}
82
- REDIS_PORT : ${{ job.services.redis.ports['6379'] }}
83
68
84
- - name : Static analyses with Larastan (PHPStan)
69
+ - name : Static code analyses with Larastan (PHPStan)
85
70
run : composer run analyse
86
71
continue-on-error : true
87
72
0 commit comments