lmdbal/.forgejo/workflows/test.yml
blue a6ac974438
Some checks are pending
Main LMDBAL workflow / Test LMDBAL with qt5 (push) Waiting to run
Main LMDBAL workflow / Test LMDBAL with qt6 (push) Waiting to run
Main LMDBAL workflow / Release documentation (push) Blocked by required conditions
CI 1
2025-05-02 20:44:23 +03:00

36 lines
837 B
YAML

name: Build and run unit tests for LMDBAL
on:
workflow_call:
inputs:
flags:
required: true
type: string
workflow_dispatch:
inputs:
flags:
description: "Flags for CMake configure stage"
type: string
default: "lmdbal"
jobs:
test:
name: Building and running unit tests
runs-on: archlinux
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Make a build directory
run: mkdir build
- name: Configure
working-directory: ./build
run: cmake .. -D LMDBAL_STRICT=True -D LMDBAL_BUILD_TESTS=True ${{ inputs.flags }}
- name: Build
working-directory: ./build
run: cmake --build .
- name: Run tests
working-directory: ./build/test
run: ./runUnitTests