Skip to content

Commit

Permalink
migrate db
Browse files Browse the repository at this point in the history
  • Loading branch information
cycle-five committed Aug 6, 2023
1 parent ab48490 commit 8978c78
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
- name: Cache
uses: Swatinem/rust-cache@v1

- name: Migrate database
run: |
cargo install sqlx-cli --no-default-features --features postgres,sqlite,runtime-tokio,tls-rustls,macros,sqlite,postgres,chrono
sqlx database create
sqlx migrate --source migrations/ run
cargo sqlx prepare -- --tests
- name: Build Binary
run: cargo build --locked

Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ jobs:

- name: Cache
uses: Swatinem/rust-cache@v1

- name: Migrate database
run: |
cargo install sqlx-cli --no-default-features --features postgres,sqlite,runtime-tokio,tls-rustls,macros,sqlite,postgres,chrono
sqlx database create
sqlx migrate --source migrations/ run
cargo sqlx prepare -- --tests
- name: Run clippy
uses: actions-rs/clippy-check@v1
Expand Down

0 comments on commit 8978c78

Please sign in to comment.