Add admonition support to descriptions/summaries #1091
Workflow file for this run
This file contains 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 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@v4 | |
- uses: actions/setup-node@v4 | |
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/main*js,demo/build/assets/js/runtime~main*js,demo/build/assets/css/styles*css,demo/.docusaurus/globalData.json,demo/.docusaurus/registry.js,demo/.docusaurus/routes.js,demo/.docusaurus/routesChunkNames.json,demo/.docusaurus/site-metadata.json,demo/.docusaurus/codeTranslations.json,demo/.docusaurus/i18n.json,demo/.docusaurus/docusaurus.config.mjs,demo/build/index.html,demo/build/petstore/**/*.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@v4 | |
- uses: actions/setup-node@v4 | |
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? |