on: push
name: Run tests
jobs:
ci-result:
name: ci result
runs-on: ubuntu-latest
needs:
- geocoding
steps:
- name: Mark the job as a success
if: success()
run: exit 0
- name: Mark the job as a failure
if: "!success()"
run: exit 1
geocoding:
name: geocoding
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
defaults:
run:
working-directory: .
strategy:
matrix:
container_image: ["georust/geo-ci:rust-1.50", "georust/geo-ci:rust-1.51"]
container:
image: ${{ matrix.container_image }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- run: cargo install cargo-all-features
- run: cargo build-all-features
- run: cargo test-all-features