File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Unit tests
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout repository
14+ uses : actions/checkout@v3
15+
16+ - name : Set up dependencies
17+ run : |
18+ sudo apt-get update
19+ sudo apt-get install -y cmake build-essential
20+
21+ - name : Configure CMake
22+ run : |
23+ cmake -Bbuild -DTEST_ENABLED=ON -DSAMPLE_ENABLED=ON .
24+
25+ - name : Build project
26+ run : |
27+ cmake --build build
28+
29+ - name : Run unit tests
30+ run : |
31+ ./build/tests/uprof-tests --reporter JUnit::out=test-results.xml --reporter console::out=-::colour-mode=ansi --success
32+
33+ - name : Test report
34+ uses : dorny/test-reporter@v2
35+ if : ${{ !cancelled() }}
36+ with :
37+ name : Unit Tests
38+ path : test-results.xml
39+ reporter : java-junit
You can’t perform that action at this time.
0 commit comments