File tree 2 files changed +16
-14
lines changed
2 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,7 @@ name: CI
2
2
3
3
on :
4
4
push :
5
- branches :
6
- - main
7
5
pull_request :
8
- branches :
9
- - main
10
6
11
7
env :
12
8
CARGO_TERM_COLOR : always
@@ -17,17 +13,23 @@ jobs:
17
13
runs-on : ubuntu-latest
18
14
19
15
steps :
20
- - name : Checkout repository
21
- uses : actions/checkout@v3
16
+ - name : Dependencies
17
+ run : sudo apt-get install -y build-essential pkg-config libclang-dev libgdal-dev
18
+
19
+ - name : Checkout
20
+ uses : actions/checkout@v4
21
+
22
+ - name : Setup
23
+ run : docker compose up db minio minio-mc -d
22
24
23
- - name : Setup compose
24
- run : docker compose up -d
25
+ - name : Build
26
+ run : rustup update stable && rustup default stable && cargo build --verbose
25
27
26
28
- name : Format
27
- run : docker exec -i ogcapi cargo fmt --all -- --check
28
-
29
- - name : Clippy
30
- run : docker exec -i ogcapi cargo clippy --workspace --all-features --examples --tests -- -D warnings
29
+ run : cargo fmt --all -- --check
31
30
32
31
- name : Test
33
- run : docker exec -i ogcapi cargo test --workspace --all-features
32
+ run : cargo test --workspace --all-features --verbose
33
+
34
+ - name : Clippy
35
+ run : cargo clippy --workspace --all-features --examples --tests -- -D warnings
Original file line number Diff line number Diff line change @@ -236,7 +236,7 @@ mod tests {
236
236
) ;
237
237
238
238
let input = GeoJsonLoaderInputs {
239
- input : "../data/data/ ne_10m_railroads_north_america.geojson" . to_owned ( ) ,
239
+ input : "../data/ne_10m_railroads_north_america.geojson" . to_owned ( ) ,
240
240
collection : "streets" . to_string ( ) ,
241
241
s_srs : None ,
242
242
database_url : "postgresql://postgres:password@localhost:5433/ogcapi" . to_string ( ) ,
You can’t perform that action at this time.
0 commit comments