Add some doc to the github actions / CI scripts (#8034)
* Add some doc to the githuib actions / CI scripts Type: task * alalytics-events is more name matching
This commit is contained in:
parent
20d5798594
commit
1eb67047c9
8 changed files with 23 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
name: Develop
|
name: End-to-end Tests
|
||||||
on:
|
on:
|
||||||
# These tests won't work for non-develop branches at the moment as they
|
# These tests won't work for non-develop branches at the moment as they
|
||||||
# won't pull in the right versions of other repos, so they're only enabled
|
# won't pull in the right versions of other repos, so they're only enabled
|
||||||
|
@ -11,6 +11,7 @@ jobs:
|
||||||
end-to-end:
|
end-to-end:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
# This must be set for fetchdep.sh to get the right branch
|
||||||
PR_NUMBER: ${{github.event.number}}
|
PR_NUMBER: ${{github.event.number}}
|
||||||
container: vectorim/element-web-ci-e2etests-env:latest
|
container: vectorim/element-web-ci-e2etests-env:latest
|
||||||
steps:
|
steps:
|
3
.github/workflows/layered-build.yaml
vendored
3
.github/workflows/layered-build.yaml
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
# Produce a 'layered build' (a build of element-web with this version of
|
||||||
|
# react-sdk) and output it as an artifact
|
||||||
name: Layered Preview Build
|
name: Layered Preview Build
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
|
@ -5,6 +7,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
# This must be set for fetchdep.sh to get the right branch
|
||||||
PR_NUMBER: ${{github.event.number}}
|
PR_NUMBER: ${{github.event.number}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
2
.github/workflows/netlify.yaml
vendored
2
.github/workflows/netlify.yaml
vendored
|
@ -1,3 +1,5 @@
|
||||||
|
# Triggers after the layered build has finished, taking the artifact
|
||||||
|
# and uploading it to netlify
|
||||||
name: Upload Preview Build to Netlify
|
name: Upload Preview Build to Netlify
|
||||||
on:
|
on:
|
||||||
workflow_run:
|
workflow_run:
|
||||||
|
|
1
.github/workflows/test_coverage.yml
vendored
1
.github/workflows/test_coverage.yml
vendored
|
@ -7,6 +7,7 @@ jobs:
|
||||||
test-coverage:
|
test-coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
# This must be set for fetchdep.sh to get the right branch
|
||||||
PR_NUMBER: ${{github.event.number}}
|
PR_NUMBER: ${{github.event.number}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|
1
.github/workflows/typecheck.yaml
vendored
1
.github/workflows/typecheck.yaml
vendored
|
@ -6,6 +6,7 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
|
# This must be set for fetchdep.sh to get the right branch
|
||||||
PR_NUMBER: ${{github.event.number}}
|
PR_NUMBER: ${{github.event.number}}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# Docker file for end-to-end tests
|
||||||
|
|
||||||
# Update on docker hub with the following commands in the directory of this file:
|
# Update on docker hub with the following commands in the directory of this file:
|
||||||
# If you're on linux amd64
|
# If you're on linux amd64
|
||||||
# docker build -t vectorim/element-web-ci-e2etests-env:latest .
|
# docker build -t vectorim/element-web-ci-e2etests-env:latest .
|
||||||
|
|
|
@ -1,5 +1,12 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# This installs other Matrix dependencies that are often
|
||||||
|
# developed in parallel with react-sdk, using fetchdep.sh
|
||||||
|
# for branch matching.
|
||||||
|
# This will set up a working react-sdk environment, so is
|
||||||
|
# used for running react-sdk standalone tests. To set up a
|
||||||
|
# build of element-web, use layered.sh
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
scripts/fetchdep.sh matrix-org matrix-js-sdk
|
scripts/fetchdep.sh matrix-org matrix-js-sdk
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Creates a layered environment with the full repo for the app and SDKs cloned
|
# Creates a layered environment with the full repo for the app and SDKs cloned
|
||||||
# and linked.
|
# and linked. This gives an element-web dev environment ready to build with
|
||||||
|
# the current react-sdk branch and any matching branches of react-sdk's dependencies
|
||||||
|
# so that changes can be tested in element-web.
|
||||||
|
|
||||||
# Note that this style is different from the recommended developer setup: this
|
# Note that this style is different from the recommended developer setup: this
|
||||||
# file nests js-sdk and element-web inside react-sdk, while the local
|
# file nests js-sdk and element-web inside react-sdk, while the local
|
||||||
|
@ -16,7 +18,8 @@ yarn link
|
||||||
yarn install --pure-lockfile
|
yarn install --pure-lockfile
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Set up the js-sdk first
|
# Also set up matrix-analytics-events so we get the latest from
|
||||||
|
# the main branch or a branch with matching name
|
||||||
scripts/fetchdep.sh matrix-org matrix-analytics-events main
|
scripts/fetchdep.sh matrix-org matrix-analytics-events main
|
||||||
pushd matrix-analytics-events
|
pushd matrix-analytics-events
|
||||||
yarn link
|
yarn link
|
||||||
|
|
Loading…
Reference in a new issue