-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
272 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
VITE_SORA_SIGNALING_URL=wss://sora.example.com/signaling | ||
VITE_SORA_CHANNEL_ID=channel_id | ||
VITE_ACCESS_TOKEN=access_token | ||
# 設定については README.md を参照してください | ||
VITE_SORA_SIGNALING_URL= | ||
VITE_SORA_CHANNEL_ID_PREFIX= | ||
VITE_SECRET_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Dependency Review Action | ||
# | ||
# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. | ||
# | ||
# Source repository: https://github.com/actions/dependency-review-action | ||
# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement | ||
name: 'Dependency Review' | ||
on: [pull_request] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
dependency-review: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: 'Checkout Repository' | ||
uses: actions/checkout@v4 | ||
- name: 'Dependency Review' | ||
uses: actions/dependency-review-action@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: e2e-test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- feature/* | ||
paths-ignore: | ||
- "**.md" | ||
- "LICENSE" | ||
- "NOTICE" | ||
schedule: | ||
# UTC 時間で毎日 2:00 (JST で 11:00) に実行、月曜日から金曜日 | ||
- cron: "0 2 * * 1-5" | ||
|
||
jobs: | ||
e2e-test: | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
node: ["20", "22", "23"] | ||
# browser: ["chromium", "firefox", "webkit"] | ||
browser: ["chromium"] | ||
env: | ||
VITE_SORA_SIGNALING_URL: ${{ secrets.TEST_SIGNALING_URL }} | ||
VITE_SORA_CHANNEL_ID_PREFIX: ${{ secrets.TEST_CHANNEL_ID_PREFIX }} | ||
VITE_ACCESS_TOKEN: ${{ secrets.TEST_SECRET_KEY }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- uses: pnpm/action-setup@v4 | ||
- run: pnpm --version | ||
- run: pnpm install | ||
- run: pnpm exec playwright install ${{ matrix.browser }} --with-deps | ||
- run: pnpm exec playwright test --project=${{ matrix.browser }} | ||
env: | ||
VITE_TEST_CHANNEL_ID_SUFFIX: _${{ matrix.node }} | ||
# - uses: actions/upload-artifact@v4 | ||
# if: always() | ||
# with: | ||
# name: playwright-report | ||
# path: playwright-report/ | ||
# retention-days: 30 | ||
|
||
# slack_notify_succeeded: | ||
# needs: [e2e-test] | ||
# runs-on: ubuntu-24.04 | ||
# if: success() | ||
# steps: | ||
# - name: Slack Notification | ||
# if: success() | ||
# uses: rtCamp/action-slack-notify@v2 | ||
# env: | ||
# SLACK_CHANNEL: sora-js-sdk | ||
# SLACK_COLOR: good | ||
# SLACK_TITLE: Succeeded | ||
# SLACK_ICON_EMOJI: ":star-struck:" | ||
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | ||
slack_notify_failed: | ||
needs: [e2e-test] | ||
runs-on: ubuntu-24.04 | ||
if: failure() | ||
steps: | ||
- name: Slack Notification | ||
if: failure() | ||
uses: rtCamp/action-slack-notify@v2 | ||
env: | ||
SLACK_CHANNEL: sora-js-sdk | ||
SLACK_COLOR: danger | ||
SLACK_TITLE: Failed | ||
SLACK_ICON_EMOJI: ":japanese_ogre:" | ||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { defineConfig, devices } from "@playwright/test"; | ||
|
||
// pnpm exec playwright test --ui | ||
|
||
export default defineConfig({ | ||
testDir: "e2e-tests/tests", | ||
// fullyParallel: true, | ||
reporter: "html", | ||
use: { | ||
launchOptions: { | ||
args: [ | ||
// CORS 無効 | ||
"--disable-web-security", | ||
"--disable-features=IsolateOrigins,site-per-process", | ||
|
||
"--use-fake-ui-for-media-stream", | ||
"--use-fake-device-for-media-stream", | ||
// "--use-file-for-fake-video-capture=/app/sample.mjpeg", | ||
], | ||
}, | ||
}, | ||
projects: [ | ||
{ | ||
name: "chromium", | ||
use: { ...devices["Desktop Chrome"] }, | ||
}, | ||
|
||
// { | ||
// name: 'firefox', | ||
// use: { ...devices['Desktop Firefox'] }, | ||
// }, | ||
|
||
// { | ||
// name: 'webkit', | ||
// use: { ...devices['Desktop Safari'] }, | ||
// }, | ||
], | ||
webServer: { | ||
command: "pnpm run dev --port 9000", | ||
url: "http://localhost:9000/", | ||
reuseExistingServer: !process.env.CI, | ||
stdout: "pipe", | ||
stderr: "pipe", | ||
}, | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.