-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 1.34 KB
/
branch-verify.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
32
33
34
35
36
name: Rust
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Run MD5 check
run: |
target/debug/osm_extract_polygon -f data/suriname-latest.osm.pbf -g
md5sum data/suriname-latest.osm.pbf_polygons/Papaichton.geojson | cut -c1-32 | awk '$1!="174f26805ecca1d0271773a8a9aba067" {err = 1; exit; } END {exit err}'
md5sum data/suriname-latest.osm.pbf_polygons/Papaichton.poly | cut -c1-32 | awk '$1!="f017f2ca29051e1c9dea687a11f6175e" {err = 1; exit; } END {exit err}'
md5sum data/suriname-latest.osm.pbf_polygons/Maripasoula.geojson | cut -c1-32 | awk '$1!="2b2be0d389bd9cc23a5120c690a06027" {err = 1; exit; } END {exit err}'
md5sum data/suriname-latest.osm.pbf_polygons/Maripasoula.poly | cut -c1-32 | awk '$1!="d7608f4bd631237a092b9a5777091340" {err = 1; exit; } END {exit err}'
- name: Push to codecov.io
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --out Xml
bash <(curl -s https://codecov.io/bash) -X gcov -t $CODECOV_TOKEN