Skip to content

Commit

Permalink
add migrate-db ci job
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhhh committed Dec 29, 2023
1 parent 0e2c5f9 commit 1d2d319
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@ on:
pull_request:

jobs:
migrate-db:
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
steps:
- uses: actions/checkout@v4
- run: rm .env
- run: sh ./dwn-server/migrations/run.sh --drop

sqlx-prepare:
needs: migrate-db
runs-on: ubuntu-latest
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
Expand Down

0 comments on commit 1d2d319

Please sign in to comment.