chore(rrweb): Replace fast-mhtml with inline MHTML parser #1024
Workflow file for this run
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: Build & Tests | |
| on: | |
| push: | |
| paths-ignore: | |
| - '**/*.md' | |
| pull_request: | |
| paths-ignore: | |
| - '**/*.md' | |
| concurrency: ${{ github.workflow }}-${{ github.ref }} | |
| jobs: | |
| job_test: | |
| name: Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| with: | |
| # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | |
| fetch-depth: 0 | |
| - name: Setup Node.js 20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Install Dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build Project | |
| run: NODE_OPTIONS='--max-old-space-size=4096' yarn build:all | |
| - name: Check types | |
| run: yarn check-types | |
| - name: Run tests | |
| # run: PUPPETEER_EXECUTABLE_PATH=${{ steps.setup-chrome.outputs.chrome-path }} PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test | |
| run: PUPPETEER_HEADLESS=true xvfb-run --server-args="-screen 0 1920x1080x24" yarn test | |
| - name: Upload diff images to GitHub | |
| uses: actions/upload-artifact@v4 | |
| if: failure() | |
| with: | |
| name: image-diff | |
| path: packages/rrweb/test/*/__image_snapshots__/__diff_output__/*.png | |
| if-no-files-found: ignore | |
| job_artifacts: | |
| needs: job_test | |
| name: Upload Artifacts | |
| runs-on: ubuntu-latest | |
| # Build artifacts are only needed for releasing workflow. | |
| if: startsWith(github.ref, 'refs/heads/release/') | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Setup Node.js 20 | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '20' | |
| cache: 'yarn' | |
| - name: Install Dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Build Project | |
| run: NODE_OPTIONS='--max-old-space-size=4096' yarn build:all | |
| - name: Build Tarballs | |
| env: | |
| NODE_OPTIONS: '--max_old_space_size=4096' | |
| run: yarn build:tarball | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ github.sha }} | |
| path: | | |
| ${{ github.workspace }}/packages/**/*.tgz |