File tree 2 files changed +17
-9
lines changed
2 files changed +17
-9
lines changed Original file line number Diff line number Diff line change 28
28
rustup override set stable
29
29
rustup update stable
30
30
31
+ - name : install `just`
32
+ run : sudo snap install --edge --classic just
33
+
31
34
- name : restore build & cargo cache
32
35
uses : Swatinem/rust-cache@v2
33
36
with :
53
56
run : cargo install sqlx-cli --no-default-features --features postgres
54
57
55
58
- name : run sqlx prepare --check
56
- run : |
57
- cargo sqlx prepare \
58
- --database-url $DOCSRS_DATABASE_URL \
59
- --workspace \
60
- --check \
61
- -- --all-targets --all-features
59
+ run : just sqlx-check
62
60
63
61
- name : test reverse migrations
64
62
run : |
@@ -229,7 +227,10 @@ jobs:
229
227
rustup update stable
230
228
rustup component add clippy
231
229
230
+ - name : install `just`
231
+ run : sudo snap install --edge --classic just
232
+
232
233
- name : restore build & cargo cache
233
234
uses : Swatinem/rust-cache@v2
234
235
235
- - run : cargo clippy --all-features --all-targets --workspace --locked -- -D warnings
236
+ - run : just lint
Original file line number Diff line number Diff line change 2
2
_ default :
3
3
just --list
4
4
5
- sqlx-prepare :
5
+ sqlx-prepare ADDITIONAL_ARGS = " " :
6
6
cargo sqlx prepare \
7
7
- -database-url $DOCSRS_DATABASE_URL \
8
- - -workspace \
8
+ - -workspace {{ ADDITIONAL_ARGS }} \
9
9
- - --all-targets --all-features
10
+
11
+ sqlx-check :
12
+ just sqlx-prepare " --check"
13
+
14
+ lint :
15
+ cargo clippy --all-features --all-targets --workspace --locked -- -D warnings
16
+
You can’t perform that action at this time.
0 commit comments