File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 7
7
container :
8
8
image : kirschbaumdevelopment/laravel-test-runner:8.2
9
9
10
+ services :
11
+ mysql :
12
+ image : mysql:8.3
13
+ env :
14
+ MYSQL_ROOT_PASSWORD : password
15
+ MYSQL_DATABASE : test
16
+ ports :
17
+ - 33306:3306
18
+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
19
+
20
+
10
21
steps :
11
22
- name : Checkout code
12
23
uses : actions/checkout@v3
13
24
14
25
- name : Install composer dependencies
15
26
run : |
16
27
composer install --no-scripts
28
+
29
+ - name : Set up database
30
+ run : |
31
+ php artisan migrate:fresh
17
32
18
33
- name : Generate ide-helper comments
19
34
run : php artisan ide-helper:refresh
22
37
run : |
23
38
git config --global user.name 'github-actions'
24
39
git config --global user.email '[email protected] '
25
- git config --global --add safe.directory /__w/${{ github.repository }} # Add your repo's directory as safe
40
+ git config --global --add safe.directory /__w/mars # Add the original repo name as safe
26
41
27
42
- name : Commit changes
28
43
run : |
You can’t perform that action at this time.
0 commit comments