Run screenshot tests daily, instead of on each commit (#10426)
* Stop running Percy on develop builds Instead, we will run it daily. This will reduce the number of Percy tests we run each month. * Run screenshot tests daily * Prettier for percy_daily.yml * Maybe something like this
This commit is contained in:
parent
e4dfb21e56
commit
372c5e1fbf
2 changed files with 11 additions and 6 deletions
15
.github/workflows/cypress.yaml
vendored
15
.github/workflows/cypress.yaml
vendored
|
@ -24,7 +24,7 @@ jobs:
|
||||||
commit_message: ${{ steps.commit.outputs.message }}
|
commit_message: ${{ steps.commit.outputs.message }}
|
||||||
commit_author: ${{ steps.commit.outputs.author }}
|
commit_author: ${{ steps.commit.outputs.author }}
|
||||||
commit_email: ${{ steps.commit.outputs.email }}
|
commit_email: ${{ steps.commit.outputs.email }}
|
||||||
percy_enable: ${{ steps.percy.outputs.value || '1' }}
|
percy_enable: ${{ steps.percy.outputs.value || '0' }}
|
||||||
kiwi_enable: ${{ steps.kiwi.outputs.value || '1' }}
|
kiwi_enable: ${{ steps.kiwi.outputs.value || '1' }}
|
||||||
steps:
|
steps:
|
||||||
# We create the status here and then update it to success/failure in the `report` stage
|
# We create the status here and then update it to success/failure in the `report` stage
|
||||||
|
@ -59,13 +59,16 @@ jobs:
|
||||||
core.setOutput("author", response.data.author.name);
|
core.setOutput("author", response.data.author.name);
|
||||||
core.setOutput("email", response.data.author.email);
|
core.setOutput("email", response.data.author.email);
|
||||||
|
|
||||||
# Only run Percy when it is demanded or on develop
|
# Only run Percy when it is demanded or we are running the daily build
|
||||||
- name: Disable Percy if not needed
|
- name: Enable Percy if X-Needs-Percy
|
||||||
id: percy
|
id: percy
|
||||||
if: |
|
if: |
|
||||||
github.event.workflow_run.event == 'pull_request' &&
|
github.event.workflow_run.event == 'schedule' ||
|
||||||
!contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy')
|
(
|
||||||
run: echo "::set-output name=value::0"
|
github.event.workflow_run.event == 'pull_request' &&
|
||||||
|
contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy')
|
||||||
|
)
|
||||||
|
run: echo "::set-output name=value::1"
|
||||||
|
|
||||||
# Only export to kiwi when it is demanded or on develop
|
# Only export to kiwi when it is demanded or on develop
|
||||||
- name: Disable Kiwi if not needed
|
- name: Disable Kiwi if not needed
|
||||||
|
|
2
.github/workflows/element-web.yaml
vendored
2
.github/workflows/element-web.yaml
vendored
|
@ -3,6 +3,8 @@
|
||||||
# as an artifact and run integration tests.
|
# as an artifact and run integration tests.
|
||||||
name: Element Web - Build
|
name: Element Web - Build
|
||||||
on:
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "17 4 * * *" # every day at 04:17 UTC
|
||||||
pull_request: {}
|
pull_request: {}
|
||||||
push:
|
push:
|
||||||
branches: [develop, master]
|
branches: [develop, master]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue