Skip to content

Commit 5b22c97

Browse files
committed
fix sqlx CI job
1 parent b1fd58c commit 5b22c97

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ jobs:
3939
with:
4040
prefix-key: ${{ env.RUST_CACHE_KEY }}
4141

42-
- name: Build
43-
run: cargo build --workspace --locked
44-
4542
- name: Launch postgres
4643
run: |
4744
cp .env.sample .env
@@ -52,12 +49,12 @@ jobs:
5249
# Make sure the database is actually working
5350
psql "${DOCSRS_DATABASE_URL}"
5451
55-
- name: run database migrations
56-
run: cargo run -- database migrate
57-
5852
- name: install SQLX CLI
5953
run: cargo install sqlx-cli --no-default-features --features postgres
6054

55+
- name: run database migrations
56+
run: cargo sqlx migrate run --database-url $DOCSRS_DATABASE_URL
57+
6158
- name: run sqlx prepare --check
6259
run: just sqlx-check
6360

@@ -99,7 +96,7 @@ jobs:
9996
sleep 5
10097
# Make sure the database is actually working
10198
psql "${DOCSRS_DATABASE_URL}"
102-
99+
103100
- name: run workspace tests
104101
run: |
105102
cargo test --workspace --locked --no-fail-fast

0 commit comments

Comments
 (0)