This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree 8 files changed +23
-3
lines changed
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
2
2
on :
3
3
# These tests won't work for non-develop branches at the moment as they
4
4
# won't pull in the right versions of other repos, so they're only enabled
11
11
end-to-end :
12
12
runs-on : ubuntu-latest
13
13
env :
14
+ # This must be set for fetchdep.sh to get the right branch
14
15
PR_NUMBER : ${{github.event.number}}
15
16
container : vectorim/element-web-ci-e2etests-env:latest
16
17
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
1
3
name : Layered Preview Build
2
4
on :
3
5
pull_request :
4
6
jobs :
5
7
build :
6
8
runs-on : ubuntu-latest
7
9
env :
10
+ # This must be set for fetchdep.sh to get the right branch
8
11
PR_NUMBER : ${{github.event.number}}
9
12
steps :
10
13
- 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
1
3
name : Upload Preview Build to Netlify
2
4
on :
3
5
workflow_run :
Original file line number Diff line number Diff line change 7
7
test-coverage :
8
8
runs-on : ubuntu-latest
9
9
env :
10
+ # This must be set for fetchdep.sh to get the right branch
10
11
PR_NUMBER : ${{github.event.number}}
11
12
steps :
12
13
- name : Checkout code
Original file line number Diff line number Diff line change 6
6
build :
7
7
runs-on : ubuntu-latest
8
8
env :
9
+ # This must be set for fetchdep.sh to get the right branch
9
10
PR_NUMBER : ${{github.event.number}}
10
11
steps :
11
12
- uses : actions/checkout@v2
Original file line number Diff line number Diff line change
1
+ # Docker file for end-to-end tests
2
+
1
3
# Update on docker hub with the following commands in the directory of this file:
2
4
# If you're on linux amd64
3
5
# docker build -t vectorim/element-web-ci-e2etests-env:latest .
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
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
+
3
10
set -ex
4
11
5
12
scripts/fetchdep.sh matrix-org matrix-js-sdk
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
3
# 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.
5
7
6
8
# Note that this style is different from the recommended developer setup: this
7
9
# file nests js-sdk and element-web inside react-sdk, while the local
@@ -16,7 +18,8 @@ yarn link
16
18
yarn install --pure-lockfile
17
19
popd
18
20
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
20
23
scripts/fetchdep.sh matrix-org matrix-analytics-events main
21
24
pushd matrix-analytics-events
22
25
yarn link
You can’t perform that action at this time.
0 commit comments