ui: fit menu dropdowns to their contents (#92) #84
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: Benchmarks | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths-ignore: | |
| - "**/*.md" | |
| - "docs/**" | |
| - "assets/**" | |
| - "LICENSE" | |
| workflow_dispatch: | |
| concurrency: | |
| group: benchmarks-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| benchmark: | |
| name: Benchmark scripts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Bun | |
| uses: oven-sh/setup-bun@v2 | |
| with: | |
| bun-version: 1.3.10 | |
| - name: Install dependencies | |
| run: bun install --frozen-lockfile | |
| - name: Run bootstrap benchmark | |
| run: | | |
| mkdir -p benchmark-results | |
| bun run bench:bootstrap-load | tee benchmark-results/bootstrap-load.txt | |
| - name: Run highlight prefetch benchmark | |
| run: | | |
| bun run bench:highlight-prefetch | tee benchmark-results/highlight-prefetch.txt | |
| - name: Run large stream benchmark | |
| run: | | |
| bun run bench:large-stream | tee benchmark-results/large-stream.txt | |
| - name: Publish benchmark summary | |
| run: | | |
| { | |
| echo '## Benchmark results' | |
| echo | |
| for file in benchmark-results/*.txt; do | |
| echo "### $(basename "$file")" | |
| echo '```text' | |
| cat "$file" | |
| echo '```' | |
| echo | |
| done | |
| } >> "$GITHUB_STEP_SUMMARY" | |
| - name: Upload benchmark artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: benchmark-results | |
| path: benchmark-results/*.txt | |
| if-no-files-found: error |