Skip to content

Commit

Permalink
ci: prepare database
Browse files Browse the repository at this point in the history
- note that this database was made with a remote snowflake
  • Loading branch information
jasonribble committed Jul 25, 2024
1 parent b83784c commit c551f13
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ env:
CARGO_TERM_COLOR: always

jobs:

prepare_database:
name: Prepare Database
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable

- name: Install sqlx-cli
run: cargo install sqlx-cli

- name: Create database
run: sqlx database create
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

- name: Run migrations
run: sqlx migrate run
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}

test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c551f13

Please sign in to comment.