Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Run screenshot tests daily, instead of on each commit #10426

Merged
merged 4 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/cypress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
commit_message: ${{ steps.commit.outputs.message }}
commit_author: ${{ steps.commit.outputs.author }}
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' }}
steps:
# We create the status here and then update it to success/failure in the `report` stage
Expand Down Expand Up @@ -59,13 +59,16 @@ jobs:
core.setOutput("author", response.data.author.name);
core.setOutput("email", response.data.author.email);

# Only run Percy when it is demanded or on develop
- name: Disable Percy if not needed
# Only run Percy when it is demanded or we are running the daily build
- name: Enable Percy if X-Needs-Percy
id: percy
if: |
github.event.workflow_run.event == 'pull_request' &&
!contains(fromJSON(steps.prdetails.outputs.data).labels.*.name, 'X-Needs-Percy')
run: echo "::set-output name=value::0"
github.event.workflow_run.event == 'schedule' ||
(
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
- name: Disable Kiwi if not needed
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/element-web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# as an artifact and run integration tests.
name: Element Web - Build
on:
schedule:
- cron: "17 4 * * *" # every day at 04:17 UTC
pull_request: {}
push:
branches: [develop, master]
Expand Down