fixup! run DB migrations to setup the DB schema #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dry Run | |
on: | |
# Run on all branches in our repo, so that we test dry-run for our PRs too | |
# Don't run on forks, which don't have access to secrets | |
push | |
jobs: | |
dry-run: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:latest | |
env: | |
POSTGRES_DB: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_USER: postgres | |
ports: | |
- 5432:5432 | |
options: >- | |
--health-cmd pg_isready | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
env: | |
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- run: npm ci | |
- run: npm run migrate | |
- name: Evaluate the last Spark round in dry-run mode | |
run: node bin/dry-run.js | |
env: | |
GLIF_TOKEN: ${{ secrets.GLIF_TOKEN }} |