Skip to content

[MDS-6227] Add administrative amendments and filter to now_gis_export API #2219

[MDS-6227] Add administrative amendments and filter to now_gis_export API

[MDS-6227] Add administrative amendments and filter to now_gis_export API #2219

name: CORE-API Integration Tests
on:
pull_request:
paths:
- migrations/**
- services/core-api/**
- services/postgres/**
- docker-compose
- docker-compose.ci.yaml
push:
branches:
- develop
paths:
- services/core-api/**
jobs:
tests-verify-migrations:
name: tests-verify-migrations
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v3
- name: Check migrations successful
env:
DOCKER_BUILDKIT: 1
run: |
docker compose -f docker-compose.ci.yaml up --force-recreate --exit-code-from flyway-verify flyway-verify
tests-integration-backend:
name: tests-integration-backend
runs-on: ubuntu-20.04
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Migrations First
env:
DOCKER_BUILDKIT: 1
run: docker compose -f docker-compose.ci.yaml up --force-recreate --exit-code-from flyway flyway
- name: Run integration tests
env:
DOCKER_BUILDKIT: 1
run: |
docker compose -f docker-compose.ci.yaml run backend coverage run -m pytest
docker compose -f docker-compose.ci.yaml run backend coverage xml
sed -i "s/<source>\/app/<source>\/github\/workspace\/services\/core-api/g" services/core-api/coverage.xml
- name: Upload test coverage results
uses: actions/upload-artifact@v4
if: success()
with:
name: core-api-test-results
path: |
services/core-api/coverage.xml
- name: Sonar Reporting
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
uses: SonarSource/[email protected]
with:
projectBaseDir: services/core-api