Skip to content

test commit

test commit #113

Workflow file for this run

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
echo $(md5sum data/suriname-latest.osm.pbf_polygons/Papaichton.geojson)
md5sum data/suriname-latest.osm.pbf_polygons/Papaichton.geojson | cut -c1-32 | awk '$1!="6554ec55b2f7a05cacb8fbe0df3199f2" {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}'
echo $(md5sum data/suriname-latest.osm.pbf_polygons/Maripasoula.geojson)
md5sum data/suriname-latest.osm.pbf_polygons/Maripasoula.geojson | cut -c1-32 | awk '$1!="934f4d585799776d2f10ef608ad2103f" {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