Skip to content

Add Catch2 for testing shared code, GeoJSON parser fixes #10

Add Catch2 for testing shared code, GeoJSON parser fixes

Add Catch2 for testing shared code, GeoJSON parser fixes #10

Workflow file for this run

name: test
on:
pull_request:
branches: [ main, develop, release/** ]
push:
branches: [ main, develop, release/** ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install build tools and dependencies
run: sudo apt-get update && sudo apt-get install cmake ninja-build clang libgl-dev libgles-dev
- name: Build
run: |
cmake -G Ninja -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DBUILD_JVM=OFF -DBUILD_STANDALONE=OFF -B build-debug
cmake --build build-debug -- tests
- name: Test
run: |
mkdir test-results
cd shared/test # for access to data/ directory
# run tests with report files in both TAP and JUnit format
../../build-debug/shared/test/tests \
--skip-benchmarks \
-r TAP::out=../../test-results/catch2.tap \
-r JUnit::out=../../test-results/catch2-junit.xml \
-r console
- name: Test Summary
uses: test-summary/action@v2
with:
paths: |
test-results/catch2.tap
test-results/catch2-junit.xml