mirror of
https://github.com/gofiber/fiber.git
synced 2025-05-31 11:52:41 +00:00
* Add support for consistent documentation using markdownlint * Only run workflow during changes to markdown files * Fix more inconsistencies * Fixes to markdown under .github/ * More fixes * Apply suggestions from code review Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * Fix typo in limiter docs * Add missing space before code-block * Add check for dead-links * Add write-good * Remove legacy README files * Fix glob for skipping .md files * Use paths-ignore instead --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- main
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
pull_request:
|
|
paths-ignore:
|
|
- "**/*.md"
|
|
|
|
name: Benchmark
|
|
jobs:
|
|
Compare:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Fetch Repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
# NOTE: Keep this in sync with the version from go.mod
|
|
go-version: "1.21.x"
|
|
|
|
- name: Run Benchmark
|
|
run: set -o pipefail; go test ./... -benchmem -run=^$ -bench . | tee output.txt
|
|
|
|
- name: Get Previous Benchmark Results
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ./cache
|
|
key: ${{ runner.os }}-benchmark
|
|
|
|
- name: Save Benchmark Results
|
|
uses: benchmark-action/github-action-benchmark@v1.20.3
|
|
with:
|
|
tool: "go"
|
|
output-file-path: output.txt
|
|
github-token: ${{ secrets.BENCHMARK_TOKEN }}
|
|
benchmark-data-dir-path: "benchmarks"
|
|
fail-on-alert: true
|
|
comment-on-alert: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
|
# Enable Job Summary for PRs - deactivated because of issues
|
|
#summary-always: ${{ github.event_name != 'push' && github.event_name != 'workflow_dispatch' }}
|
|
# TODO: reactivate it later -> when v3 is the stable one
|
|
#auto-push: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|
|
auto-push: false
|
|
save-data-file: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
|