File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 21
21
clippy :
22
22
name : cargo clippy
23
23
runs-on : ubuntu-latest
24
+ services :
25
+ postgres :
26
+ image : postgres:15
27
+ env :
28
+ POSTGRES_HOST_AUTH_METHOD : trust
29
+ options : >-
30
+ --health-cmd pg_isready
31
+ --health-interval 10s
32
+ --health-timeout 5s
33
+ --health-retries 5
34
+ ports :
35
+ - 5432:5432
24
36
container :
25
37
image : rust:latest
38
+ env :
39
+ DATABASE_URL : postgres://postgres@postgres:5432
26
40
steps :
27
41
- uses : actions/checkout@v3
28
42
- uses : actions/cache@v3
34
48
~/.cargo/git/db/
35
49
target/
36
50
key : ${{ runner.os }}-cargo-clippy-${{ hashFiles('**/Cargo.lock') }}
51
+ - name : Install sqlx
52
+ run : cargo install sqlx-cli --no-default-features --features postgres
53
+ - name : Run the test sqlx migrations
54
+ run : cargo sqlx migrate run
37
55
- run : |
38
56
rustup component add clippy
39
57
# Temporarily allowing dead-code, while denying all other warnings
You can’t perform that action at this time.
0 commit comments