diff options
author | Devon Hudson <devonhudson@librem.one> | 2023-01-11 09:52:58 -0700 |
---|---|---|
committer | Devon Hudson <devonhudson@librem.one> | 2023-01-11 09:52:58 -0700 |
commit | 11a07d855dd7f08fcd386cb778cbdd353ddd5aa4 (patch) | |
tree | ece28e40ff099885ec51ab79d2f7efcd6a80bc56 | |
parent | 97ebd72b5a731decdf8f67742179e1adc0f9f30d (diff) |
Initial attempt at adding cypress tests to ci
-rw-r--r-- | .github/workflows/schedules.yaml | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/schedules.yaml b/.github/workflows/schedules.yaml index d2a1f6e1..63a60a24 100644 --- a/.github/workflows/schedules.yaml +++ b/.github/workflows/schedules.yaml @@ -73,3 +73,38 @@ jobs: path: | /logs/results.tap /logs/**/*.log* + + element_web: + 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 + run: yarn build + working-directory: ./element-web + - 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 }} + HOMESERVER: 'dendrite' |