From ee4760351ca6abfc4aa515ac111e038d03814544 Mon Sep 17 00:00:00 2001 From: Enrico Schwendig Date: Mon, 6 Mar 2023 09:45:42 +0100 Subject: [PATCH] add end-to-end test workflow (#885) * e2e: add end-to-end test workflow - The tests are executed in a Docker container. - The static users are connected via `matrix-js-sdk Client`. - A test user connecting to the conference via EC. --- .github/workflows/e2e.yml | 24 ++++++++++++++++++++++++ README.md | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/e2e.yml diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 00000000..ba1172d4 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,24 @@ +name: Run E2E tests +on: + workflow_run: + workflows: ["deploy"] + types: + - completed + branches-ignore: + - "main" +jobs: + e2e: + name: E2E tests runs on Element Call + runs-on: ubuntu-latest + steps: + - name: Check out test private repo + uses: actions/checkout@v3 + with: + repository: vector-im/static-call-participant + ref: refs/heads/main + path: static-call-participant + token: ${{ secrets.GH_E2E_TEST_TOKEN }} + - name: Build E2E Image + run: "cd static-call-participant && docker build --no-cache --tag matrixdotorg/chrome-node-static-call-participant:latest ." + - name: Run E2E tests in container + run: "docker run --rm -v '${{ github.workspace }}/static-call-participant/callemshost-users.txt:/opt/app/callemshost-users.txt' matrixdotorg/chrome-node-static-call-participant:latest ./e2e.sh" diff --git a/README.md b/README.md index 511c7dc5..de5f1221 100644 --- a/README.md +++ b/README.md @@ -96,4 +96,4 @@ There are currently two different config files. `.env` holds variables that are ## Translation -If you'd like to help translate Element Call, head over to [translate.element.io](https://translate.element.io/engage/element-call/). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts. +Bf you'd like to help translate Element Call, head over to [translate.element.io](https://translate.element.io/engage/element-call/). You're also encouraged to join the [Element Translators](https://matrix.to/#/#translators:element.io) space to discuss and coordinate translation efforts.