2022-06-18 20:04:11 +02:00
|
|
|
name: benchmark
|
|
|
|
on:
|
2023-02-10 03:15:36 +01:00
|
|
|
workflow_run:
|
|
|
|
workflows: [publish-latest]
|
|
|
|
branches: [master]
|
|
|
|
types: [completed]
|
2022-06-18 20:04:11 +02:00
|
|
|
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:
|
2024-01-02 05:26:52 +01:00
|
|
|
- uses: actions/setup-go@v5
|
2022-06-18 20:04:11 +02:00
|
|
|
with:
|
2024-06-08 18:39:26 +02:00
|
|
|
go-version: 1.22.2
|
2023-02-10 03:25:06 +01:00
|
|
|
repository: "${{ github.event.inputs.repository || 'TwiN/gatus' }}"
|
|
|
|
ref: "${{ github.event.inputs.ref || 'master' }}"
|
2023-09-30 14:06:35 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-06-18 20:04:11 +02:00
|
|
|
- name: Benchmark
|
|
|
|
run: go test -bench=. ./storage/store
|