2022-06-18 20:04:11 +02:00
|
|
|
name: benchmark
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
repository:
|
|
|
|
description: "Repository to checkout. Useful for benchmarking a fork. Format should be <owner>/<repository>."
|
|
|
|
required: true
|
2022-06-18 20:09:24 +02:00
|
|
|
default: "TwiN/gatus"
|
2022-06-18 20:04:11 +02:00
|
|
|
ref:
|
|
|
|
description: "Branch, tag or SHA to checkout"
|
|
|
|
required: true
|
|
|
|
default: "master"
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: benchmark
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
timeout-minutes: 5
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: 1.18
|
2022-06-20 04:37:19 +02:00
|
|
|
repository: "${{ github.event.inputs.repository }}"
|
|
|
|
ref: "${{ github.event.inputs.ref }}"
|
2022-06-18 20:04:11 +02:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Benchmark
|
|
|
|
run: go test -bench=. ./storage/store
|