Skip to content

Commit

Permalink
Update unit-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
wawanbreton committed Sep 13, 2024
1 parent 74aa169 commit 0df257a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ jobs:
install_system_dependencies: true

- name: Install dependencies and build unit test
run: conan create . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} -o enable_testing=True -s build_type=Release --build=missing --update -g GitHubActionsRunEnv -g GitHubActionsBuildEnv
run: conan build . ${{ needs.conan-recipe-version.outputs.recipe_id_full }} -o enable_testing=True -s build_type=Release --build=missing --update -g GitHubActionsRunEnv -g GitHubActionsBuildEnv

- name: Run Unit Test
id: run-test
run: ctest --output-junit engine_test.xml
working-directory: build/Release/
run: ctest --output-junit unit_tests_results.xml
working-directory: build/Release/tests

- name: Publish Unit Test Results
id: test-results
uses: EnricoMi/publish-unit-test-result-action@v1
uses: EnricoMi/publish-unit-test-result-action@v2
if: ${{ always() }}
with:
files: "**/*.xml"
files: build/Release/tests/unit_tests_results.xml

- name: Conclusion
run: echo "Conclusion is ${{ fromJSON( steps.test-results.outputs.json ).conclusion }}"

0 comments on commit 0df257a

Please sign in to comment.