Skip to content

Commit fdc6a14

Browse files
committed
Fix CI
1 parent 6a95cb8 commit fdc6a14

File tree

5 files changed

+21
-16
lines changed

5 files changed

+21
-16
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches:
6-
- main
75
pull_request:
8-
branches:
9-
- main
106

117
env:
128
CARGO_TERM_COLOR: always
@@ -17,17 +13,23 @@ jobs:
1713
runs-on: ubuntu-latest
1814

1915
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
2224

23-
- name: Setup compose
24-
run: docker compose up -d
25+
- name: Build
26+
run: rustup update stable && rustup default stable && cargo build --workspace --all-targets
2527

2628
- name: Format
27-
run: docker exec -i ogcapi cargo fmt --all -- --check
29+
run: cargo fmt --all -- --check
2830

2931
- name: Clippy
30-
run: docker exec -i ogcapi cargo clippy --workspace --all-features --examples --tests -- -D warnings
32+
run: cargo clippy --workspace --all-features --all-targets -- -D warnings
3133

3234
- name: Test
33-
run: docker exec -i ogcapi cargo test --workspace --all-features
35+
run: cargo test --workspace --all-features --all-targets

ogcapi-drivers/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ use ogcapi_types::tiles::TileMatrixSet;
1818
#[cfg(feature = "features")]
1919
use ogcapi_types::{
2020
common::Crs,
21-
features::{Feature, FeatureCollection, Query as FeatureQuery},
21+
features::{Feature, Query as FeatureQuery},
2222
};
2323

24+
#[cfg(any(feature = "features", feature = "stac", feature = "edr"))]
25+
use ogcapi_types::features::FeatureCollection;
26+
2427
/// Trait for `Collection` transactions
2528
#[cfg(feature = "common")]
2629
#[async_trait::async_trait]

ogcapi-processes/src/geojson_loader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ mod tests {
236236
);
237237

238238
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(),
240240
collection: "streets".to_string(),
241241
s_srs: None,
242242
database_url: "postgresql://postgres:password@localhost:5433/ogcapi".to_string(),

ogcapi-services/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ ogcapi-processes = { path = "../ogcapi-processes", version = "0.2", optional = t
5353

5454
[dev-dependencies]
5555
geojson = { workspace = true }
56-
hyper-util = { version = "0.1.10", features = ["client"] }
56+
hyper-util = { version = "0.1.10", features = ["client-legacy"] }
5757
http-body-util = "0.1.2"
58-
uuid = { version = "1.11", features = ["serde", "v4"] }
58+
uuid = { version = "1.15.1", features = ["serde", "v4"] }
5959

6060
data-loader = { path = "../examples/data-loader" }

ogcapi-types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ default = ["common"]
1313

1414
# standards
1515
common = []
16-
edr = ["common"]
16+
edr = ["common", "features"]
1717
features = ["common"]
1818
processes = ["common"]
1919
stac = ["features"]

0 commit comments

Comments
 (0)