lmdbal/.forgejo/workflows/test.yml
blue ad1a13c323
Some checks failed
Main LMDBAL workflow / Release documentation (push) Failing after 8s
Main LMDBAL workflow / Test LMDBAL with qt5 (push) Successful in 1m15s
Main LMDBAL workflow / Test LMDBAL with qt6 (push) Successful in 1m32s
CI 3
2025-05-02 21:35:09 +03:00

39 lines
852 B
YAML

name: Build and run unit tests for LMDBAL
on:
workflow_call:
inputs:
flags:
required: true
type: string
secrets:
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