Skip to content

Commit

Permalink
お試し
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Oct 15, 2024
1 parent 5cbc9f3 commit 11de634
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/npm-latest-sdk-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
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 }}
NPM_LATEST_SDK_E2E_TEST: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -41,7 +42,7 @@ jobs:
- run: pnpm add -E sora-js-sdk@${{ matrix.sdk_version }}

working-directory: ./examples
- run: pnpm run build
# pnpm run build しない
- run: pnpm exec playwright install ${{ matrix.browser }} --with-deps
- run: pnpm exec playwright test --project=${{ matrix.browser }}
env:
Expand Down
11 changes: 8 additions & 3 deletions vite.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ import { defineConfig } from 'vite'
export default defineConfig({
root: resolve(__dirname, 'examples'),
resolve: {
alias: {
'sora-js-sdk': resolve(__dirname, 'dist/sora.mjs'),
},
// NPM_LATEST_SDK_E2E_TEST が true の時は alias を無効化する
// これは .github/workflows/npm-latest-sdk-e2e-test.yml で、
// E2E テストで複数のバージョンの npm の sora-js-sdk をインストールして利用するため
alias: process.env.NPM_LATEST_SDK_E2E_TEST
? {}
: {
'sora-js-sdk': resolve(__dirname, 'dist/sora.mjs'),
},
},
build: {
rollupOptions: {
Expand Down

0 comments on commit 11de634

Please sign in to comment.