prometheus/.github/workflows/funcbench.yml
Krasi Georgiev e4560e0d64
Add GH actions (#5949)
Signed-off-by: Krasi Georgiev <8903888+krasi-georgiev@users.noreply.github.com>
2019-08-26 17:44:38 +03:00

19 lines
864 B
YAML

on: issue_comment
name: Benchmark
jobs:
commentMonitor:
runs-on: ubuntu-latest
steps:
- name: commentMonitor
uses: docker://prombench/comment-monitor:latest
env:
COMMENT_TEMPLATE: 'The benchmark has started. We are comparing this PR agains
branch {{ index . "BRANCH" }}. You can run the same tests with command: `go
test -bench {{ index . "REGEX" }} -benchmem -race -v ./...` [Github Actions logs](https://github.com/{{ index . "GITHUB_REPOSITORY" }}/commit/{{ index . "GITHUB_SHA" }}/checks)'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: '"^/funcbench ?(?P<BRANCH>[^ B\.]+)? ?(?P<REGEX>\.|Bench.*|[^ ]+)? ?(?P<RACE>-no-race)?.*$" --no-verify-user'
- name: benchmark
uses: docker://prombench/funcbench:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}