Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
puripuri2100 committed Aug 12, 2023
1 parent b32cac1 commit e258db1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: CI
on: [push, pull_request]

env:
DATABASE_URL: postgresql://localhost:5432/postgres?user=postgres&password=postgres

jobs:
check:
runs-on: ubuntu-latest
Expand All @@ -13,7 +16,9 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test
- run:
sudo apt install postgresql
cargo test
rustfmt:
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion src/app/equipment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ mod tests {

use crate::app::equipment::insert_equipment;

#[sqlx::test]
#[sqlx::test(migrations = "./migrations")]
async fn test_insert_equipment(pool: Pool<Postgres>) {
let conn = Arc::new(pool);
let status_code = insert_equipment(
Expand Down

0 comments on commit e258db1

Please sign in to comment.