File tree Expand file tree Collapse file tree 8 files changed +23
-3
lines changed Expand file tree Collapse file tree 8 files changed +23
-3
lines changed Original file line number Diff line number Diff line change 1- name : Develop
1+ name : End-to-end Tests
22on :
33 # These tests won't work for non-develop branches at the moment as they
44 # won't pull in the right versions of other repos, so they're only enabled
1111 end-to-end :
1212 runs-on : ubuntu-latest
1313 env :
14+ # This must be set for fetchdep.sh to get the right branch
1415 PR_NUMBER : ${{github.event.number}}
1516 container : vectorim/element-web-ci-e2etests-env:latest
1617 steps :
Original file line number Diff line number Diff line change 1+ # Produce a 'layered build' (a build of element-web with this version of
2+ # react-sdk) and output it as an artifact
13name : Layered Preview Build
24on :
35 pull_request :
46jobs :
57 build :
68 runs-on : ubuntu-latest
79 env :
10+ # This must be set for fetchdep.sh to get the right branch
811 PR_NUMBER : ${{github.event.number}}
912 steps :
1013 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1+ # Triggers after the layered build has finished, taking the artifact
2+ # and uploading it to netlify
13name : Upload Preview Build to Netlify
24on :
35 workflow_run :
Original file line number Diff line number Diff line change 77 test-coverage :
88 runs-on : ubuntu-latest
99 env :
10+ # This must be set for fetchdep.sh to get the right branch
1011 PR_NUMBER : ${{github.event.number}}
1112 steps :
1213 - name : Checkout code
Original file line number Diff line number Diff line change 66 build :
77 runs-on : ubuntu-latest
88 env :
9+ # This must be set for fetchdep.sh to get the right branch
910 PR_NUMBER : ${{github.event.number}}
1011 steps :
1112 - uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1+ # Docker file for end-to-end tests
2+
13# Update on docker hub with the following commands in the directory of this file:
24# If you're on linux amd64
35# docker build -t vectorim/element-web-ci-e2etests-env:latest .
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # This installs other Matrix dependencies that are often
4+ # developed in parallel with react-sdk, using fetchdep.sh
5+ # for branch matching.
6+ # This will set up a working react-sdk environment, so is
7+ # used for running react-sdk standalone tests. To set up a
8+ # build of element-web, use layered.sh
9+
310set -ex
411
512scripts/fetchdep.sh matrix-org matrix-js-sdk
Original file line number Diff line number Diff line change 11#! /bin/bash
22
33# Creates a layered environment with the full repo for the app and SDKs cloned
4- # and linked.
4+ # and linked. This gives an element-web dev environment ready to build with
5+ # the current react-sdk branch and any matching branches of react-sdk's dependencies
6+ # so that changes can be tested in element-web.
57
68# Note that this style is different from the recommended developer setup: this
79# file nests js-sdk and element-web inside react-sdk, while the local
@@ -16,7 +18,8 @@ yarn link
1618yarn install --pure-lockfile
1719popd
1820
19- # Set up the js-sdk first
21+ # Also set up matrix-analytics-events so we get the latest from
22+ # the main branch or a branch with matching name
2023scripts/fetchdep.sh matrix-org matrix-analytics-events main
2124pushd matrix-analytics-events
2225yarn link
You can’t perform that action at this time.
0 commit comments