add a run unit tests example in the README.md

This commit is contained in:
Alfi Maulana 2023-01-23 15:37:40 +07:00
parent 4ee1d5d7fc
commit 921b31dcf4
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4

View File

@ -84,6 +84,16 @@ jobs:
-DBUILD_TESTING=ON -DBUILD_TESTING=ON
``` ```
#### Run Unit Tests After Build
```yaml
- name: Configure, build, and test this project
uses: threeal/cmake-action@latest
with:
args: -DBUILD_TESTING=ON
run-test: true
```
#### Using Ninja as the Generator and Clang as the Compiler #### Using Ninja as the Generator and Clang as the Compiler
```yaml ```yaml