Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
build-and-test:
runs-on: ubuntu-latest
container:
image: ghcr.io/${{ github.repository_owner }}/embedded-lib-dev:latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Check environment
run: |
cmake --version
gcc --version

- name: Create build directory
run: mkdir build

- name: Configure CMake
run: cmake -DTARGET_GROUP=test ..
working-directory: ./build

- name: Build tests
run: cmake --build .
working-directory: ./build

- name: Run tests
run: ctest --output-on-failure
working-directory: ./build