ci: Run benchmark on every new latest image
name: benchmark
on:
+ workflow_run:
+ workflows: [publish-latest]
+ branches: [master]
+ types: [completed]
workflow_dispatch:
inputs:
repository:
@@ -19,8 +23,8 @@ jobs:
- uses: actions/setup-go@v3
with:
go-version: 1.19
- repository: "${{ github.event.inputs.repository }}"
- ref: "${{ github.event.inputs.ref }}"
+ repository: ${{ github.event.inputs.repository || "TwiN/gatus" }}
+ ref: ${{ github.event.inputs.ref || "master" }}
- uses: actions/checkout@v3
- name: Benchmark
run: go test -bench=. ./storage/store
