From bd80c616cca892fd5b8e0597cdc1e220a5dfa087 Mon Sep 17 00:00:00 2001 From: voluntas Date: Wed, 21 Feb 2024 16:34:44 +0900 Subject: [PATCH] =?UTF-8?q?SUFFIX=20=E3=82=92=E8=BF=BD=E5=8A=A0=E3=81=97?= =?UTF-8?q?=E3=80=81GitHub=20Actions=20=E3=81=AE=20github.run=5Fid=20?= =?UTF-8?q?=E3=82=92=E5=88=A9=E7=94=A8=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/e2e-test.yml | 2 ++ examples/messaging/main.mjs | 3 ++- examples/spotlight_recvonly/main.mjs | 3 ++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 2ec3868d..ac204b39 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -35,6 +35,8 @@ jobs: - run: pnpm run build - run: pnpm exec playwright install --with-deps - run: pnpm exec playwright test --project=${{ matrix.browser }} + env: + VITE_SORA_CHANNEL_ID_SUFFIX: _${{ github.run_id }}-${{ matrix.node }} # - uses: actions/upload-artifact@v4 # if: always() # with: diff --git a/examples/messaging/main.mjs b/examples/messaging/main.mjs index ca1b5815..c6c64ab4 100644 --- a/examples/messaging/main.mjs +++ b/examples/messaging/main.mjs @@ -2,12 +2,13 @@ import Sora from '../../dist/sora.mjs' const SORA_SIGNALING_URL = import.meta.env.VITE_SORA_SIGNALING_URL const SORA_CHANNEL_ID_PREFIX = import.meta.env.VITE_SORA_CHANNEL_ID_PREFIX +const SORA_CHANNEL_ID_SUFFIX = import.meta.env.VITE_SORA_CHANNEL_ID_SUFFIX const ACCESS_TOKEN = import.meta.env.VITE_ACCESS_TOKEN const debug = true const sora = Sora.connection(SORA_SIGNALING_URL, debug) -const channelId = `${SORA_CHANNEL_ID_PREFIX}messaging` +const channelId = `${SORA_CHANNEL_ID_PREFIX}messaging${SORA_CHANNEL_ID_SUFFIX}` const metadata = { access_token: ACCESS_TOKEN } const options = { dataChannelSignaling: true, diff --git a/examples/spotlight_recvonly/main.mjs b/examples/spotlight_recvonly/main.mjs index bca6e392..3aaf0585 100644 --- a/examples/spotlight_recvonly/main.mjs +++ b/examples/spotlight_recvonly/main.mjs @@ -2,9 +2,10 @@ import Sora from '../../dist/sora.mjs' const SORA_SIGNALING_URL = import.meta.env.VITE_SORA_SIGNALING_URL const SORA_CHANNEL_ID_PREFIX = import.meta.env.VITE_SORA_CHANNEL_ID_PREFIX +const SORA_CHANNEL_ID_SUFFIX = import.meta.env.VITE_SORA_CHANNEL_ID_SUFFIX const ACCESS_TOKEN = import.meta.env.VITE_ACCESS_TOKEN -const channelId = `${SORA_CHANNEL_ID_PREFIX}spotlight_sendonly_recvonly` +const channelId = `${SORA_CHANNEL_ID_PREFIX}spotlight_sendonly_recvonly${SORA_CHANNEL_ID_SUFFIX}` const debug = false const sora = Sora.connection(SORA_SIGNALING_URL, debug) const metadata = { access_token: ACCESS_TOKEN }