File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments