Skip to content

Commit

Permalink
ci(db): run migration and seeders separeted
Browse files Browse the repository at this point in the history
  • Loading branch information
jlenon7 committed Apr 28, 2024
1 parent de7700a commit d2834bb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ jobs:
- name: Install dependencies
run: npm install

- name: Setup database tables
run: node artisan db:fresh --env test --connection postgres
- name: Run migrations
run: node artisan migration:run --env test --connection postgres

- name: Run seeders
run: node artisan db:seed --env test --connection postgres

- name: Run tests
run: npm run test:coverage
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@athenna/common": "^4.36.0",
"@athenna/config": "^4.20.0",
"@athenna/core": "^4.37.0",
"@athenna/database": "^4.47.0",
"@athenna/database": "^4.48.0",
"@athenna/http": "^4.32.0",
"@athenna/ioc": "^4.19.0",
"@athenna/logger": "^4.20.0",
Expand Down

0 comments on commit d2834bb

Please sign in to comment.