Skip to content

Fix support for example summaries #935

Fix support for example summaries

Fix support for example summaries #935

Workflow file for this run

name: Build Performance
on:
pull_request:
branches:
- main
paths-ignore:
- demo/docs/**
jobs:
build-size:
name: Build Size Report
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18"
cache: yarn
- uses: preactjs/compressed-size-action@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
build-script: build
clean-script: clean
pattern: "{demo/build/assets/js/*js,demo/build/assets/css/styles*css,demo/.docusaurus/globalData.json,demo/build/index.html,demo/build/docs/index.html,demo/build/docs/installation/index.html}"
strip-hash: '\.([^;]\w{7})\.'
minimum-change-threshold: 30
compression: none
build-time:
name: Build Time Perf
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: yarn
- name: Installation
run: yarn
# Ensure build with a cold cache does not increase too much
- name: Build (cold cache)
run: yarn build
timeout-minutes: 8
# Ensure build with a warm cache does not increase too much
- name: Build (warm cache)
run: yarn build
timeout-minutes: 2
# TODO post a Github comment with build with perf warnings?