-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (31 loc) · 880 Bytes
/
Copy pathut.yml
File metadata and controls
39 lines (31 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Unit tests
on:
push:
branches:
- '**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up dependencies
run: |
sudo apt-get update
sudo apt-get install -y cmake build-essential
- name: Configure CMake
run: |
cmake -Bbuild -DTEST_ENABLED=ON -DSAMPLE_ENABLED=ON .
- name: Build project
run: |
cmake --build build
- name: Run unit tests
run: |
./build/tests/uprof-tests --reporter JUnit::out=test-results.xml --reporter console::out=-::colour-mode=ansi --success
- name: Test report
uses: dorny/test-reporter@v2
if: ${{ !cancelled() }}
with:
name: Unit Tests
path: test-results.xml
reporter: java-junit