Skip to content

Commit

Permalink
Add Migrations To CI and Fix Clippy Warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony M. Bonafide <anthony.bonafide@shipt.com>
  • Loading branch information
AnthonyMBonafide committed Mar 28, 2024
1 parent 10f5377 commit ca87ad6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/msrv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ jobs:
- name: Check sqlx-data.json is up-to-date
run: |
cargo sqlx prepare --workspace --check
- name: Migrate database
run: |
cargo sqlx migrate run
- name: Run tests
run: cargo test

Expand Down
3 changes: 1 addition & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@ pub mod configuration;
pub mod routes;
pub mod startup;


pub use startup::run;
pub use configuration::get_configuration;
pub use startup::run;
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::net::TcpListener;

use sqlx::{Connection, PgPool};
use sqlx::PgPool;
use zero2prod::{configuration::get_configuration, run};

#[tokio::main]
Expand Down

0 comments on commit ca87ad6

Please sign in to comment.