mirror of https://github.com/vector-im/riot-web
Allow element-web hash to be specified when calling playwright tests workflow (#12087)
parent
2a3b8926f2
commit
045f96fd58
|
@ -29,6 +29,10 @@ on:
|
||||||
type: string
|
type: string
|
||||||
required: false
|
required: false
|
||||||
description: "The Git SHA of matrix-js-sdk to build against. By default, will use a matching branch name if it exists, or develop."
|
description: "The Git SHA of matrix-js-sdk to build against. By default, will use a matching branch name if it exists, or develop."
|
||||||
|
element-web-sha:
|
||||||
|
type: string
|
||||||
|
required: false
|
||||||
|
description: "The Git SHA of element-web to build against. By default, will use a matching branch name if it exists, or develop."
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
|
||||||
|
@ -55,8 +59,9 @@ jobs:
|
||||||
- name: Fetch layered build
|
- name: Fetch layered build
|
||||||
id: layered_build
|
id: layered_build
|
||||||
env:
|
env:
|
||||||
# tell layered.sh to check out the right sha of the JS-SDK, if we were given one
|
# tell layered.sh to check out the right sha of the JS-SDK & EW, if they were given one
|
||||||
JS_SDK_GITHUB_BASE_REF: ${{ inputs.matrix-js-sdk-sha }}
|
JS_SDK_GITHUB_BASE_REF: ${{ inputs.matrix-js-sdk-sha }}
|
||||||
|
ELEMENT_WEB_GITHUB_BASE_REF: ${{ inputs.element-web-sha }}
|
||||||
run: |
|
run: |
|
||||||
scripts/ci/layered.sh
|
scripts/ci/layered.sh
|
||||||
JSSDK_SHA=$(git -C matrix-js-sdk rev-parse --short=12 HEAD)
|
JSSDK_SHA=$(git -C matrix-js-sdk rev-parse --short=12 HEAD)
|
||||||
|
|
|
@ -42,6 +42,7 @@ yarn install --frozen-lockfile
|
||||||
# Finally, set up element-web
|
# Finally, set up element-web
|
||||||
scripts/fetchdep.sh vector-im element-web develop
|
scripts/fetchdep.sh vector-im element-web develop
|
||||||
pushd element-web
|
pushd element-web
|
||||||
|
[ -n "$ELEMENT_WEB_GITHUB_BASE_REF" ] && git fetch --depth 1 origin $ELEMENT_WEB_GITHUB_BASE_REF && git checkout $ELEMENT_WEB_GITHUB_BASE_REF
|
||||||
yarn link matrix-js-sdk
|
yarn link matrix-js-sdk
|
||||||
yarn link matrix-react-sdk
|
yarn link matrix-react-sdk
|
||||||
yarn install --frozen-lockfile
|
yarn install --frozen-lockfile
|
||||||
|
|
Loading…
Reference in New Issue