Skip to content

Commit

Permalink
Added a test runner Github Action configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
Sp3EdeR committed Nov 16, 2023
1 parent 8154d29 commit 2fe7cc4
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# This action builds and runs CTest tests

name: testable_singleton unit tests
on:
push:
branches: [ master ]
pull_request:
workflow_dispatch: # Manual execution
jobs:
test-ubuntu-gcc-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Configure and build the project
uses: threeal/[email protected]
with:
run-build: true
run-test: true
options: CMAKE_BUILD_TYPE=Release
test-args: -V
test-ubuntu-clang-latest:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Configure and build the project
uses: threeal/[email protected]
with:
run-build: true
run-test: true
options: CMAKE_BUILD_TYPE=Debug
test-args: -V
c-compiler: clang
cxx-compiler: clang++
test-windows-latest:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Configure and build the project
uses: threeal/[email protected]
with:
run-build: true
run-test: true
options: CMAKE_BUILD_TYPE=Debug
test-args: -C Debug -V
test-macos-latest:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
submodules: true
- name: Configure and build the project
uses: threeal/[email protected]
with:
run-build: true
run-test: true
test-args: -V
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![unit test status](https://github.com/Sp3EdeR/testable_singleton/actions/workflows/Tests.yml/badge.svg?branch=main)](https://github.com/Sp3EdeR/testable_singleton/actions/workflows/Tests.yml?query=branch%3Amain)

# Testable Singleton
This header-only C++ library implements the [Singleton pattern](https://en.wikipedia.org/wiki/Singleton_pattern) in a thread-safe and efficient way.

Expand Down

0 comments on commit 2fe7cc4

Please sign in to comment.