fix(errors): treat detached-frame and early-main-frame as retryable (… #1525
This file contains hidden or 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
| name: pull_request | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| matrix: | |
| if: github.ref != 'refs/heads/master' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v7 | |
| - id: matrix | |
| run: echo "matrix=$(node .github/workflows/get-matrix.mjs)" >> $GITHUB_OUTPUT | |
| - run: echo ${{ steps.matrix.outputs.matrix }} | |
| outputs: | |
| matrix: ${{ steps.matrix.outputs.matrix }} | |
| test: | |
| name: Test ${{ matrix.package.name }} | |
| needs: matrix | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: ${{fromJson(needs.matrix.outputs.matrix)}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version: lts/* | |
| - name: Setup PNPM | |
| uses: pnpm/action-setup@v6 | |
| with: | |
| version: latest | |
| - name: Install | |
| run: pnpm install --dangerously-allow-all-builds | |
| - name: Install GL runtime | |
| # libgl1-mesa-dri ships on the ubuntu-24.04 runner; only install (and | |
| # refresh the index) on the off chance a future image drops it. | |
| run: dpkg -s libgl1-mesa-dri >/dev/null 2>&1 || (sudo apt-get update && sudo apt-get install -y --no-install-recommends libgl1-mesa-dri) | |
| - name: Test | |
| run: xvfb-run -a pnpm --filter "${{ matrix.package.filter }}" exec c8 pnpm test | |
| - name: Coverage | |
| run: pnpm --filter "${{ matrix.package.filter }}" exec c8 report --reporter=lcov --report-dir=coverage | |
| - name: Upload | |
| uses: coverallsapp/github-action@main | |
| with: | |
| flag-name: ${{ matrix.package.name }} | |
| parallel: true | |
| file: $(pnpm --filter "${{ matrix.package.filter }}" exec pwd)/coverage/lcov.info | |
| fail-on-error: false | |
| finish: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Coveralls Finished | |
| uses: coverallsapp/github-action@main | |
| with: | |
| parallel-finished: true | |
| fail-on-error: false |