Skip to content

Commit

Permalink
GHA: build and cypress-test a copy of element-web after each push (#3412
Browse files Browse the repository at this point in the history
)

* Build a copy of element-web after each push

* Run cypress after each build of element-web
  • Loading branch information
richvdh committed Jun 5, 2023
1 parent 1a5af9d commit e70a1a1
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Triggers after the "Downstream artifacts" build has finished, to run the
# cypress tests (with access to repo secrets)

name: matrix-react-sdk Cypress End to End Tests
on:
workflow_run:
workflows: ["Build downstream artifacts"]
types:
- completed

concurrency:
group: ${{ github.workflow }}-${{ github.event.workflow_run.head_branch || github.run_id }}
cancel-in-progress: ${{ github.event.workflow_run.event == 'pull_request' }}

jobs:
cypress:
name: Cypress
uses: matrix-org/matrix-react-sdk/.github/workflows/cypress.yaml@HEAD
permissions:
actions: read
issues: read
statuses: write
pull-requests: read
secrets:
# secrets are not automatically shared with called workflows, so share the cypress dashboard key
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
with:
react-sdk-repository: matrix-org/matrix-react-sdk
rust-crypto: true
17 changes: 17 additions & 0 deletions .github/workflows/downstream-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Build downstream artifacts
on:
pull_request: {}
merge_group:
types: [checks_requested]
push:
branches: [develop, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-element-web:
name: Build element-web
uses: matrix-org/matrix-react-sdk/.github/workflows/element-web.yaml@HEAD
with:
matrix-js-sdk-sha: ${{ github.sha }}
react-sdk-repository: matrix-org/matrix-react-sdk

0 comments on commit e70a1a1

Please sign in to comment.