Skip to content

Commit 81c3b8f

Browse files
committed
Fix CI
1 parent 6a95cb8 commit 81c3b8f

File tree

2 files changed

+16
-14
lines changed

2 files changed

+16
-14
lines changed

.github/workflows/ci.yml

+15-13
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 --verbose
2527

2628
- 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
3130

3231
- 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

ogcapi-processes/src/geojson_loader.rs

+1-1
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(),

0 commit comments

Comments
 (0)