mirror of
https://github.com/element-hq/element-web
synced 2024-11-21 16:55:34 +03:00
Manually finalize Percy builds (#10220)
This commit is contained in:
parent
5f78be73f3
commit
dbc0dca591
2 changed files with 14 additions and 3 deletions
|
@ -23,4 +23,4 @@ indent_size = 4
|
|||
trim_trailing_whitespace = true
|
||||
|
||||
[*.{yml,yaml}]
|
||||
indent_size = 2
|
||||
indent_size = 4
|
||||
|
|
15
.github/workflows/cypress.yaml
vendored
15
.github/workflows/cypress.yaml
vendored
|
@ -165,8 +165,9 @@ jobs:
|
|||
PERCY_BRANCH: ${{ github.event.workflow_run.head_branch }}
|
||||
PERCY_COMMIT: ${{ github.event.workflow_run.head_sha }}
|
||||
PERCY_PULL_REQUEST: ${{ needs.prepare.outputs.pr_id }}
|
||||
PERCY_PARALLEL_TOTAL: ${{ strategy.job-total }}
|
||||
PERCY_PARALLEL_NONCE: ${{ needs.prepare.outputs.uuid }}
|
||||
# We manually finalize the build in the report stage
|
||||
PERCY_PARALLEL_TOTAL: -1
|
||||
|
||||
- name: Upload Artifact
|
||||
if: failure()
|
||||
|
@ -184,14 +185,23 @@ jobs:
|
|||
with:
|
||||
name: cypress-junit
|
||||
path: cypress/results
|
||||
|
||||
report:
|
||||
name: Report results
|
||||
needs: tests
|
||||
needs:
|
||||
- prepare
|
||||
- tests
|
||||
runs-on: ubuntu-latest
|
||||
if: always()
|
||||
permissions:
|
||||
statuses: write
|
||||
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
|
||||
with:
|
||||
authToken: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
@ -199,6 +209,7 @@ jobs:
|
|||
context: ${{ github.workflow }} / cypress (${{ github.event.workflow_run.event }} => ${{ github.event_name }})
|
||||
sha: ${{ github.event.workflow_run.head_sha }}
|
||||
target_url: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
|
||||
|
||||
testrail:
|
||||
name: Report results to testrail
|
||||
needs:
|
||||
|
|
Loading…
Reference in a new issue