Skip to content

Consistent test table naming #453

Consistent test table naming

Consistent test table naming #453

Workflow file for this run

name: Sanitizer
on:
push:
paths-ignore:
- 'README.md'
- 'doc/**'
pull_request:
paths-ignore:
- 'README.md'
- 'doc/**'
jobs:
sanitizer:
strategy:
fail-fast: false
matrix:
cxx: [g++, clang++]
sanitizer: [address, undefined]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
CXX: ${{ matrix.cxx }}
TAOPQ_TEST_DATABASE: host=localhost dbname=postgres user=postgres password=postgres
steps:
- uses: actions/checkout@v4
- run: sudo apt-get update -yq
- run: sudo apt-get install -yq libpq-dev
- run: cmake -E make_directory build
- working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_CXX_FLAGS="-fsanitize=${{ matrix.sanitizer }}"
- working-directory: build/
run: cmake --build .
- working-directory: build/
run: ctest --output-on-failure