Skip to content

Firefox and Webkit #175

Firefox and Webkit

Firefox and Webkit #175

name: Firefox and Webkit
on:
schedule:
# At the end of every day
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
install-deps:
name: Install Dependencies
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup
- name: Build
run: yarn exec nx vite:build @blocksuite/playground
main-test:
if: github.repository == 'toeverything/blocksuite'
needs: install-deps
name: Browser Compatibility Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest]
browsers: [firefox, webkit]
shard: [1, 2, 3, 4, 5]
steps:
- uses: actions/checkout@v4
with:
repository: ${{ inputs.repo || github.repository }}
ref: ${{ inputs.ref || github.ref }}
- uses: ./.github/actions/setup
- name: Build playground
run: yarn exec nx vite:build @blocksuite/playground
- name: Install playwright browsers
run: npx playwright install --with-deps ${{ matrix.browsers }}
- name: Run playwright test
env:
BROWSER: ${{ matrix.browsers }}
run: yarn test --forbid-only --shard=${{ matrix.shard }}/5
- name: Upload test results
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: test-results-e2e-${{ matrix.os }}-${{ matrix.browsers }}-${{ matrix.shard }}
path: ./tests/test-results
if-no-files-found: ignore