Skip to content

Commit ce827cf

Browse files
committed
Try: fix CI
1 parent 6a95cb8 commit ce827cf

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 13 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: apt-get update && apt-get install -y --no-install-recommends build-essential pkg-config libclang-dev libgdal-dev && rm -rf /var/lib/apt/lists/*
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

0 commit comments

Comments
 (0)