Skip to content

Null safety for sqlite::Connection::fromRaw (#16) #88

Null safety for sqlite::Connection::fromRaw (#16)

Null safety for sqlite::Connection::fromRaw (#16) #88

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
jobs:
check-format:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Check formatting
run: python ${{ github.workspace }}/scripts/check_format.py --clang-format=clang-format-18
check-tidy:
runs-on: ubuntu-24.04
env:
build_dir: ${{ github.workspace }}/build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install libfmt-dev libpq-dev libsqlite3-dev
- name: Configure CMake
run: cmake -B ${{ env.build_dir }} -S ${{ github.workspace }}
- name: Run clang-tidy
run: python ${{ github.workspace }}/scripts/tidy.py --clang-tidy=run-clang-tidy-18 --compile-commands=${{ env.build_dir }}
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-22.04
compiler:
- g++
- clang++
env:
build_dir: ${{ github.workspace }}/build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install libfmt-dev libpq-dev libsqlite3-dev
- name: Configure CMake
run: CXX=${{ env.compiler }} cmake -B ${{ env.build_dir }} -S ${{ github.workspace }} -DPFR_ORM_ASAN:BOOL=ON
- name: Build tests
run: cmake --build ${{ env.build_dir }}
- name: Run tests
run: ctest --output-on-failure --test-dir ${{ env.build_dir }}
test-gsl:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-14
- ubuntu-22.04
env:
build_dir: ${{ github.workspace }}/build
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies (macOS)
run: brew install fmt postgresql cpp-gsl
if: matrix.os == 'macos-14'
- name: Install dependencies (Ubuntu)
run: sudo apt-get install libfmt-dev libpq-dev libsqlite3-dev libmsgsl-dev
if: matrix.os == 'ubuntu-22.04'
- name: Configure CMake
run: cmake -B ${{ env.build_dir }} -S ${{ github.workspace }} -DPFR_ORM_ASAN:BOOL=ON -DPFR_ORM_USE_GSL_SPAN:BOOL=ON
- name: Build tests
run: cmake --build ${{ env.build_dir }}
- name: Run tests
run: ctest --output-on-failure --test-dir ${{ env.build_dir }}