mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user