Use xcresultparser in all workflows. (#2510)

* Fix integration tests.
This commit is contained in:
Doug
2024-02-28 18:01:20 +00:00
committed by GitHub
parent c8f728ca23
commit 5f0c782ce2
8 changed files with 27 additions and 69 deletions
+11 -3
View File
@@ -36,13 +36,18 @@ jobs:
INTEGRATION_TESTS_HOST: ${{ secrets.INTEGRATION_TESTS_HOST }}
INTEGRATION_TESTS_USERNAME: ${{ secrets.INTEGRATION_TESTS_USERNAME }}
INTEGRATION_TESTS_PASSWORD: ${{ secrets.INTEGRATION_TESTS_PASSWORD }}
- name: Zip results # for faster upload
if: failure()
working-directory: fastlane/test_output
run: zip -r IntegrationTests.xcresult.zip IntegrationTests.xcresult
- name: Archive artifacts
uses: actions/upload-artifact@v3
if: always()
if: failure()
with:
name: test-output
path: fastlane/test_output
name: Results
path: fastlane/test_output/IntegrationTests.xcresult.zip
retention-days: 7
if-no-files-found: ignore
@@ -72,6 +77,9 @@ jobs:
git commit -m "Results for $GITHUB_SHA"
git push
- name: Collect coverage
run: xcresultparser -q -o cobertura -t ElementX -p $(pwd) fastlane/test_output/IntegrationTests.xcresult > fastlane/test_output/integration-cobertura.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
+11 -3
View File
@@ -42,15 +42,23 @@ jobs:
bundle exec fastlane ui_tests test_name:${{ github.event.inputs.test_name }}
fi
- name: Zip results # for faster upload
if: failure()
working-directory: fastlane/test_output
run: zip -r UITests.xcresult.zip UITests.xcresult
- name: Archive artifacts
uses: actions/upload-artifact@v3
if: always()
if: failure()
with:
name: test-output
path: fastlane/test_output
name: Results
path: fastlane/test_output/UITests.xcresult.zip
retention-days: 7
if-no-files-found: ignore
- name: Collect coverage
run: xcresultparser -q -o cobertura -t ElementX -p $(pwd) fastlane/test_output/UITests.xcresult > fastlane/test_output/ui-cobertura.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
+2 -2
View File
@@ -61,8 +61,8 @@ jobs:
- name: Collect coverage
run: |
xcresultparser -q -o cobertura -t ElementX -p $(pwd) fastlane/test_output/UnitTests.xcresult > fastlane/test_output/unittests-cobertura.xml
xcresultparser -q -o cobertura -t ElementX -p $(pwd) fastlane/test_output/PreviewTests.xcresult > fastlane/test_output/previewtests-cobertura.xml
xcresultparser -q -o cobertura -t ElementX -p $(pwd) fastlane/test_output/UnitTests.xcresult > fastlane/test_output/unit-cobertura.xml
xcresultparser -q -o cobertura -t ElementX -p $(pwd) fastlane/test_output/PreviewTests.xcresult > fastlane/test_output/preview-cobertura.xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3