Commit b629556 1 parent 215fa2a commit b629556 Copy full SHA for b629556
File tree 1 file changed +17
-3
lines changed
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build-and-test :
11
- runs-on : ubuntu-latest # Focando no Linux, pois você mencionou testes locais no Ubuntu
11
+ runs-on : ubuntu-latest
12
12
13
13
steps :
14
14
- name : Checkout code
18
18
run : |
19
19
mkdir build
20
20
cd build
21
- cmake ..
21
+ cmake -DGTEST_OUTPUT=xml:gtest-report.xml ..
22
22
make
23
- ./tests/unit-tests/LibUnitTests
23
+ ./tests/unit-tests/LibUnitTests --gtest_output=xml:./gtest-report.xml
24
+
25
+ - name : Upload Test Report
26
+ uses : actions/upload-artifact@v3
27
+ with :
28
+ name : gtest-report
29
+ path : build/gtest-report.xml
30
+
31
+ - name : Publish Test Results (Optional)
32
+ uses : dorny/test-reporter@v1
33
+ if : always()
34
+ with :
35
+ name : GTest Results
36
+ path : build/gtest-report.xml
37
+ reporter : junit
You can’t perform that action at this time.
0 commit comments