-
Notifications
You must be signed in to change notification settings - Fork 2
31 lines (30 loc) · 926 Bytes
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on:
push:
branches:
- main
pull_request:
name: Run tests
jobs:
wkt:
name: wkt
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
container:
image: georust/geo-ci
steps:
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
components: rustfmt, clippy, rust-src
- name: Checkout repository
uses: actions/checkout@v2
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features --all-targets -- -Dwarnings
- run: cargo test --all-features
- run: cargo test --no-default-features
# We run this on CI as a test that recursive writing of geometry/geometry
# collections can compile. See https://github.com/kylebarron/wkb/issues/15
- run: cargo bench --bench parse