Skip to content

Commit

Permalink
Installing Ninja.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed May 16, 2024
1 parent f02192d commit ebf305f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/Pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,29 @@ jobs:
with:
repository: google/googletest
path: examples/Cpp/GoogleTest/lib/googletest
- name: 🔧 Install dependencies
run: sudo apt-get install -y --no-install-recommends ninja-build
- name: 🛠 Run CMake
run: |
cd examples/Cpp/GoogleTest
cmake -B build -G Ninja
cmake --build build
- name: ✅ Run unit tests
- name: ✅ Run unit tests (directly)
run: |
cd examples/Cpp/GoogleTest
ctest --test-dir build/ --output-junit ../ctest.xml
./build/unit_tests --gtest_output=xml:gtest.xml
- name: ✅ Run unit tests (by ctest)
run: |
cd examples/Cpp/GoogleTest
ctest --test-dir build/ --output-junit ../ctest.xml
- name: List generated XML reports
run: |
ls -lAh examples/Cpp/GoogleTest/build/*.xml
update-alternatives --config gcc
ls -lAh examples/Cpp/GoogleTest/*.xml
- name: 📤 Upload JUnit XML files as artifact
uses: actions/upload-artifact@v4
with:
name: Cpp-GoogleTest
path: examples/Cpp/GoogleTest/build/*.xml
path: examples/Cpp/GoogleTest/*.xml

Python-pytest:
runs-on: ubuntu-latest
Expand Down

0 comments on commit ebf305f

Please sign in to comment.