Skip to content

Commit

Permalink
Add unit tests to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrietS committed Jan 31, 2024
1 parent fdee521 commit 8371c6e
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Tests

on: [push, pull_request]

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
build_type: [Release, Debug]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -S tests -B build_tests -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}

- name: Build
run: cmake --build build_tests --config ${{ matrix.build_type }}

- name: Run tests
run: ctest --test-dir build_tests --output-on-failure

0 comments on commit 8371c6e

Please sign in to comment.