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 39
39
with :
40
40
prefix-key : ${{ env.RUST_CACHE_KEY }}
41
41
42
- - name : Build
43
- run : cargo build --workspace --locked
44
-
45
42
- name : Launch postgres
46
43
run : |
47
44
cp .env.sample .env
@@ -52,12 +49,12 @@ jobs:
52
49
# Make sure the database is actually working
53
50
psql "${DOCSRS_DATABASE_URL}"
54
51
55
- - name : run database migrations
56
- run : cargo run -- database migrate
57
-
58
52
- name : install SQLX CLI
59
53
run : cargo install sqlx-cli --no-default-features --features postgres
60
54
55
+ - name : run database migrations
56
+ run : cargo sqlx migrate run --database-url $DOCSRS_DATABASE_URL
57
+
61
58
- name : run sqlx prepare --check
62
59
run : just sqlx-check
63
60
99
96
sleep 5
100
97
# Make sure the database is actually working
101
98
psql "${DOCSRS_DATABASE_URL}"
102
-
99
+
103
100
- name : run workspace tests
104
101
run : |
105
102
cargo test --workspace --locked --no-fail-fast
You can’t perform that action at this time.
0 commit comments