1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 02:24:27 +00:00
fiber/.github/workflows/benchmark.yml

28 lines
761 B
YAML
Raw Normal View History

2020-05-16 05:02:36 +02:00
on: [push]
name: Benchmark
jobs:
Compare:
2020-05-12 23:05:07 +02:00
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v1
with:
2020-05-16 05:02:36 +02:00
go-version: 1.14.x
2020-05-12 23:05:07 +02:00
- name: Fetch Repository
uses: actions/checkout@v2
2020-05-12 23:05:07 +02:00
- name: Run Benchmark
2020-06-30 00:54:40 +02:00
run: go test ./... -benchmem -run=^$ -bench . | tee output.txt
2020-05-12 23:05:07 +02:00
- name: Get Previous Benchmark Results
2020-05-13 00:32:25 +02:00
uses: actions/cache@v1
with:
2020-05-13 00:32:25 +02:00
path: ./cache
key: ${{ runner.os }}-benchmark
2020-05-13 00:39:51 +02:00
- name: Save Benchmark Results
uses: rhysd/github-action-benchmark@v1
with:
tool: 'go'
2020-05-13 03:02:37 +02:00
output-file-path: output.txt
github-token: ${{ secrets.BENCHMARK_TOKEN }}
fail-on-alert: true
2020-05-12 23:53:55 +02:00
comment-on-alert: true
2020-05-13 03:02:37 +02:00
auto-push: true