Skip to content

fix(catalog): fix a typo for the sprung buffers technical specification #6

fix(catalog): fix a typo for the sprung buffers technical specification

fix(catalog): fix a typo for the sprung buffers technical specification #6

Workflow file for this run

name: db-migrations
on:
push:
paths:
- '.sqlx/**'
- 'migrations/**'
workflow_dispatch:
env:
DATABASE_URL: postgresql://postgres:[email protected]:5432/trenakodb
jobs:
validate:
runs-on: ubuntu-22.04
services:
postgres:
image: postgres:16.1-alpine@sha256:6cec07cb67f8e819dfe044dd6fc07d87c2c58051f90273d0d8c2611a4d24da16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mysecretpassword
POSTGRES_DB: trenakodb
ports:
- 5432:5432
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Setup the rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install sqlx cli
run: cargo install sqlx-cli --no-default-features --features native-tls,postgres
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
continue-on-error: false
- name: Toolchain info
run: |
rustc --version
cargo --version --verbose
sqlx --version
- name: List available migrations
run: cargo sqlx migrate info
- name: List the database migrations to apply
run: cargo sqlx migrate run --dry-run
- name: Run the database migrations (up)
run: cargo sqlx migrate run
- name: Validate sqlx offline metadata
run: cargo sqlx prepare --check --workspace
- name: List the database migrations to revert
run: cargo sqlx migrate revert --dry-run --target-version 0
- name: Run the database migrations (down)
run: cargo sqlx migrate revert --target-version 0