Skip to content

wip

wip #32

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: "0.0.0.0"
APP_PORT: "8484"
DATABASE_URL: "postgresql://postgres:password@localhost:5432/ogcapi"
- name: Check running service
# run: curl --retry 20 --retry-delay 5 -s -o /dev/null http://localhost:8484
run: |
until [ \
"$(curl -s -w '%{http_code}' -o /dev/null "http://localhost:8484/")" \
-eq 200 ]
do
sleep 5
done
- name: Validate
uses: OSGEO/[email protected]
with:
test_suite_identifier: ogcapi-features-1.0
test_session_arguments: iut=http://0.0.0.0:8484/