Skip to content

Commit 502b47d

Browse files
authored
add db and fix repo name
1 parent 7c049c0 commit 502b47d

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/ide-helper.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,28 @@ jobs:
77
container:
88
image: kirschbaumdevelopment/laravel-test-runner:8.2
99

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+
1021
steps:
1122
- name: Checkout code
1223
uses: actions/checkout@v3
1324

1425
- name: Install composer dependencies
1526
run: |
1627
composer install --no-scripts
28+
29+
- name: Set up database
30+
run: |
31+
php artisan migrate:fresh
1732
1833
- name: Generate ide-helper comments
1934
run: php artisan ide-helper:refresh
@@ -22,7 +37,7 @@ jobs:
2237
run: |
2338
git config --global user.name 'github-actions'
2439
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
2641
2742
- name: Commit changes
2843
run: |

0 commit comments

Comments
 (0)