Skip to content

wip

wip #24

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
cite-validation:
name: OGC Cite Validation (Features)
runs-on: ubuntu-latest
services:
db:
image: docker.io/postgis/postgis
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: ogcapi
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load
run: cargo run -p data-loader -- --input data/ne_110m_admin_0_countries.geojson --collection countries
env:
DATABASE_URL: "postgresql://postgres:password@localhost:5432/ogcapi"
- name: Run
run: RUNNER_TRACKING_ID="" && cargo run -p cite-service
env:
APP_HOST: "127.0.0.1"
APP_PORT: "8484"
DATABASE_URL: "postgresql://postgres:password@localhost:5432/ogcapi"
- name: Check running service
run: curl --retry 10 --retry-delay 5 http://localhost:8484
- name: Validate
uses: OSGEO/[email protected]
with:
test_suite_identifier: ogcapi-features-1.0
test_session_arguments: iut=http://host.docker.internal:8484