Skip to content

Commit

Permalink
Run migrations before e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Nov 29, 2023
1 parent 3c64eb7 commit 6366dc5
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
- run: npm i
- run: cp .env.sample .env
- run: npm run build
- run: bash ./scripts/db_run_migrations.sh
- run: npm run ${{matrix.task}}
- name: Coveralls Parallel
uses: coverallsapp/[email protected]
Expand Down Expand Up @@ -159,11 +160,11 @@ jobs:
needs: [docker-publish]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- name: Deploy Staging
if: github.ref == 'refs/heads/main'
run: bash scripts/autodeploy.sh
env:
AUTODEPLOY_URL: ${{ secrets.AUTODEPLOY_URL }}
AUTODEPLOY_TOKEN: ${{ secrets.AUTODEPLOY_TOKEN }}
TARGET_ENV: "staging"
- uses: actions/checkout@v4
- name: Deploy Staging
if: github.ref == 'refs/heads/main'
run: bash scripts/autodeploy.sh
env:
AUTODEPLOY_URL: ${{ secrets.AUTODEPLOY_URL }}
AUTODEPLOY_TOKEN: ${{ secrets.AUTODEPLOY_TOKEN }}
TARGET_ENV: 'staging'

0 comments on commit 6366dc5

Please sign in to comment.