Manually finalize Percy builds (#10220)
parent
5f78be73f3
commit
dbc0dca591
|
@ -23,4 +23,4 @@ indent_size = 4
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
|
|
||||||
[*.{yml,yaml}]
|
[*.{yml,yaml}]
|
||||||
indent_size = 2
|
indent_size = 4
|
||||||
|
|
|
@ -165,8 +165,9 @@ jobs:
|
||||||
PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
||||||
PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
|
PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
|
||||||
PERCY_PULL_REQUEST: ${{ needs.prepare.outputs.pr_id }}
|
PERCY_PULL_REQUEST: ${{ needs.prepare.outputs.pr_id }}
|
||||||
PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
|
|
||||||
PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
|
PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
|
||||||
|
# We manually finalize the build in the report stage
|
||||||
|
PERCY_PARALLEL_TOTAL: -1
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
if: failure()
|
if: failure()
|
||||||
|
@ -184,14 +185,23 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: cypress-junit
|
name: cypress-junit
|
||||||
path: cypress/results
|
path: cypress/results
|
||||||
|
|
||||||
report:
|
report:
|
||||||
name: Report results
|
name: Report results
|
||||||
needs: tests
|
needs:
|
||||||
|
- prepare
|
||||||
|
- tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: always()
|
if: always()
|
||||||
permissions:
|
permissions:
|
||||||
statuses: write
|
statuses: write
|
||||||
steps:
|
steps:
|
||||||
|
- name: Finalize Percy
|
||||||
|
if: needs.prepare.outputs.percy_enable == '1'
|
||||||
|
run: npx -p @percy/cli percy build:finalize
|
||||||
|
env:
|
||||||
|
PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
|
||||||
|
|
||||||
- uses: Sibz/github-status-action@v1
|
- uses: Sibz/github-status-action@v1
|
||||||
with:
|
with:
|
||||||
authToken: ${{ secrets.GITHUB_TOKEN }}
|
authToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
@ -199,6 +209,7 @@ jobs:
|
||||||
context: ${{ github.workflow }} / cypress (${{ github.event.workflow_run.event }} => ${{ github.event_name }})
|
context: ${{ github.workflow }} / cypress (${{ github.event.workflow_run.event }} => ${{ github.event_name }})
|
||||||
sha: ${{ github.event.workflow_run.head_sha }}
|
sha: ${{ github.event.workflow_run.head_sha }}
|
||||||
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||||
|
|
||||||
testrail:
|
testrail:
|
||||||
name: Report results to testrail
|
name: Report results to testrail
|
||||||
needs:
|
needs:
|
||||||
|
|
Loading…
Reference in New Issue