Skip to content

Commit

Permalink
ci: enable bs e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
Saul-Mirone committed Dec 20, 2024
1 parent c750545 commit 57626fe
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,36 @@ jobs:
yarn set version $(node -e "console.log(require('./package.json').packageManager.split('@')[1])")
git diff --exit-code
e2e-legacy-blocksuite-test:
name: Legacy Blocksuite E2E Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: ./.github/actions/setup-node
with:
playwright-install: true
electron-install: false
full-cache: true

- name: Run Playground Build
run: yarn workspace @blocksuite/playground build

- name: Run playwright tests
run: yarn workspace @blocksuite/legacy-e2e test --forbid-only --shard=${{ matrix.shard }}/${{ strategy.job-total }}

- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test-results-e2e-legacy-bs-${{ matrix.shard }}
path: ./test-results
if-no-files-found: ignore

e2e-test:
name: E2E Test
runs-on: ubuntu-latest
Expand Down Expand Up @@ -767,6 +797,7 @@ jobs:
- lint
- check-yarn-binary
- e2e-test
- e2e-legacy-blocksuite-test
- e2e-mobile-test
- unit-test
- build-native
Expand Down
2 changes: 1 addition & 1 deletion blocksuite/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"dev": "vite --host",
"dev:hmr": "WC_HMR=1 vite",
"build": "tsc && nx vite:build",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
Expand Down

0 comments on commit 57626fe

Please sign in to comment.