Skip to content

(#61) (#26) (#28) (#25) | Add some extra pokemon fields to the database #9

(#61) (#26) (#28) (#25) | Add some extra pokemon fields to the database

(#61) (#26) (#28) (#25) | Add some extra pokemon fields to the database #9

Workflow file for this run

name: Database Migrations
on:
workflow_dispatch:
push:
branches:
- main
paths:
- db/**
jobs:
migrate:
name: Migrate
runs-on: ubuntu-latest
env:
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
DB_HOST: ${{ secrets.DB_HOST }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm migrate:ci
test:
name: Test
needs: migrate
runs-on: ubuntu-22.04 # See: https://github.com/puppeteer/puppeteer/issues/12818
env:
ENV: prod
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm test