Add action/workflow to run unit tests
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 4s
All checks were successful
Run Unit Tests / build-and-run-unit-tests (push) Successful in 4s
Currently only runs `test_datastructures`.
This commit is contained in:
parent
aa00131020
commit
86a68eef83
1 changed files with 20 additions and 0 deletions
20
.forgejo/workflows/unittest.yml
Normal file
20
.forgejo/workflows/unittest.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: Run Unit Tests
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build-and-run-unit-tests:
|
||||
runs-on: any_archLinux
|
||||
steps:
|
||||
- run: git clone --depth=1 --no-single-branch https://git.seodisparate.com/stephenseo/SimpleArchiver.git simplearchiver
|
||||
name: Get repo
|
||||
- run: cd simplearchiver && git checkout "${GITHUB_REF_NAME}"
|
||||
name: Checkout the branch
|
||||
- run: cmake -S simplearchiver -B buildDebug
|
||||
name: Run cmake to prepare the build
|
||||
- run: make -C buildDebug
|
||||
name: Build
|
||||
- run: ./buildDebug/test_datastructures
|
||||
name: Run test_datastructures
|
Loading…
Reference in a new issue