We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5e34f4 commit 761ebb0Copy full SHA for 761ebb0
.github/workflows/utests.yml
@@ -0,0 +1,33 @@
1
+name: Unit tests
2
+
3
+on:
4
+ push:
5
+ branches: '*'
6
+ pull_request:
7
+ branches: [ "master" ]
8
9
+env:
10
+ BUILD_TYPE: Debug
11
12
+jobs:
13
+ build:
14
+ runs-on: ubuntu-latest
15
16
+ steps:
17
+ - uses: actions/checkout@v3
18
+ with:
19
+ submodules: true
20
21
+ - name: Install dependencies
22
+ run: |
23
+ sudo apt-get update
24
+ sudo apt-get install -y nlohmann-json3-dev libutfcpp-dev
25
+ shell: bash
26
+ - name: Configure CMake
27
+ run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLIBSCRATCHCPP_BUILD_UNIT_TESTS=ON
28
29
+ - name: Build
30
+ run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
31
32
+ - name: Run unit tests
33
+ run: ctest --test-dir build -V
0 commit comments