Converge on same comments and behaviours for forks and cancelled runs.
This commit is contained in:
committed by
Stefan Ceriu
parent
cc88353384
commit
16b5f7adca
13
.github/workflows/integration-tests.yml
vendored
13
.github/workflows/integration-tests.yml
vendored
@@ -47,13 +47,14 @@ jobs:
|
||||
- name: Check logs don't contain private messages
|
||||
run: "! grep 'Go down in flames' /Users/Shared -R"
|
||||
|
||||
- name: Zip results # for faster upload
|
||||
- name: Zip results # Faster upload
|
||||
if: failure()
|
||||
working-directory: fastlane/test_output
|
||||
run: zip -r IntegrationTests.xcresult.zip IntegrationTests.xcresult
|
||||
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
# We only care about artefacts if the tests fail
|
||||
if: failure()
|
||||
with:
|
||||
name: Results
|
||||
@@ -71,9 +72,13 @@ jobs:
|
||||
if-no-files-found: ignore
|
||||
|
||||
- name: Collect coverage
|
||||
# Skip if cancelled and in forks
|
||||
if: ${{ !cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
||||
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
|
||||
# Skip if cancelled and in forks
|
||||
if: ${{ !cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
||||
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
|
||||
with:
|
||||
report_type: coverage
|
||||
@@ -82,11 +87,13 @@ jobs:
|
||||
flags: integrationtests
|
||||
|
||||
- name: Collect test results
|
||||
if: ${{ !cancelled() }}
|
||||
# Skip if cancelled and in forks
|
||||
if: ${{ !cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
||||
run: xcresultparser -q -o junit -p $(pwd) fastlane/test_output/IntegrationTests.xcresult > fastlane/test_output/integration-junit.xml
|
||||
|
||||
- name: Upload test results to Codecov
|
||||
if: ${{ !cancelled() }}
|
||||
# Skip if cancelled and in forks
|
||||
if: ${{ !cancelled() && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
|
||||
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6
|
||||
continue-on-error: true
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user