From 1d2d3190305e7fca47939b235edeff2387932fe5 Mon Sep 17 00:00:00 2001 From: Kayh Date: Fri, 29 Dec 2023 16:36:21 -0500 Subject: [PATCH] add migrate-db ci job --- .github/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34577d3..d53eaf2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}