Skip to content

DB Migrate

DB Migrate #2640

Workflow file for this run

name: DB Migrate
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
production:
name: Production
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
- name: Setup Node.js, pnpm, dependencies and run migrations 🌸
uses: ./.github/actions/db-migration
with:
database_url: ${{ secrets.PRODUCTION_DATABASE_URL }}
test:
name: Test
runs-on: ubuntu-latest
if: github.event_name == 'workflow_dispatch'
steps:
- name: Checkout 🚪
uses: actions/checkout@v4
- name: Setup Node.js, pnpm, dependencies and run migrations 🌸
uses: ./.github/actions/db-migration
with:
database_url: ${{ secrets.TEST_DATABASE_URL }}