aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorDevon Hudson <devonhudson@librem.one>2023-03-27 07:55:49 -0600
committerDevon Hudson <devonhudson@librem.one>2023-03-27 07:57:30 -0600
commit69e3bd82a94470c4072637374dea82b8c2acfaec (patch)
treedaa539985fb83eb0bbfd932fe4e72fb0c714086f /.github/workflows
parentfa7710315a00f6e857bb9c315c0a7ba248288b79 (diff)
Add dendrite-demo-pinecone cypress tests
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/schedules.yaml41
1 files changed, 40 insertions, 1 deletions
diff --git a/.github/workflows/schedules.yaml b/.github/workflows/schedules.yaml
index 25459491..e76cc82f 100644
--- a/.github/workflows/schedules.yaml
+++ b/.github/workflows/schedules.yaml
@@ -219,7 +219,7 @@ jobs:
flags: complement
fail_ci_if_error: true
- element_web:
+ element-web:
timeout-minutes: 120
runs-on: ubuntu-latest
steps:
@@ -257,3 +257,42 @@ jobs:
env:
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
TMPDIR: ${{ runner.temp }}
+
+ element-web-pinecone:
+ timeout-minutes: 120
+ runs-on: ubuntu-latest
+ steps:
+ - uses: tecolicom/actions-use-apt-tools@v1
+ with:
+ # Our test suite includes some screenshot tests with unusual diacritics, which are
+ # supposed to be covered by STIXGeneral.
+ tools: fonts-stix
+ - uses: actions/checkout@v2
+ with:
+ repository: matrix-org/matrix-react-sdk
+ - uses: actions/setup-node@v3
+ with:
+ cache: 'yarn'
+ - name: Fetch layered build
+ run: scripts/ci/layered.sh
+ - name: Copy config
+ run: cp element.io/develop/config.json config.json
+ working-directory: ./element-web
+ - name: Build
+ env:
+ CI_PACKAGE: true
+ NODE_OPTIONS: "--openssl-legacy-provider"
+ run: yarn build
+ working-directory: ./element-web
+ - name: Edit Test Config
+ run: |
+ sed -i '/HOMESERVER/c\ HOMESERVER: "dendritePinecone",' cypress.config.ts
+ - name: "Run cypress tests"
+ uses: cypress-io/github-action@v4.1.1
+ with:
+ browser: chrome
+ start: npx serve -p 8080 ./element-web/webapp
+ wait-on: 'http://localhost:8080'
+ env:
+ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
+ TMPDIR: ${{ runner.temp }}