mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Zip results from Unit Test failures (#2542)
* Zip uploaded unit test results on failure. Add a failure to test. Revert "Add a failure to test."
This commit is contained in:
@@ -49,13 +49,18 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: bundle exec fastlane unit_tests
|
run: bundle exec fastlane unit_tests
|
||||||
|
|
||||||
|
- name: Zip results # for faster upload
|
||||||
|
if: failure()
|
||||||
|
working-directory: fastlane/test_output
|
||||||
|
run: zip -r UnitTests.zip UnitTests.xcresult PreviewTests.xcresult
|
||||||
|
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
# We only care about artifcats if the tests fail
|
# We only care about artefacts if the tests fail
|
||||||
if: failure()
|
if: failure()
|
||||||
with:
|
with:
|
||||||
name: test-output
|
name: Results
|
||||||
path: fastlane/test_output
|
path: fastlane/test_output/UnitTests.zip
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
if-no-files-found: ignore
|
if-no-files-found: ignore
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user