Skip to content

Commit b629556

Browse files
authored
Update cmake-multi-platform.yml
1 parent 215fa2a commit b629556

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

.github/workflows/cmake-multi-platform.yml

+17-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
build-and-test:
11-
runs-on: ubuntu-latest # Focando no Linux, pois você mencionou testes locais no Ubuntu
11+
runs-on: ubuntu-latest
1212

1313
steps:
1414
- name: Checkout code
@@ -18,6 +18,20 @@ jobs:
1818
run: |
1919
mkdir build
2020
cd build
21-
cmake ..
21+
cmake -DGTEST_OUTPUT=xml:gtest-report.xml ..
2222
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

0 commit comments

Comments
 (0)