Skip to content

chore: upgrade opentofulib. #4096

chore: upgrade opentofulib.

chore: upgrade opentofulib. #4096

Workflow file for this run

# Copyright 2023 Terramate GmbH
# SPDX-License-Identifier: MPL-2.0
name: benchmarks
on:
pull_request:
paths:
- go.mod
- go.sum
- '**.go'
- '!**_test.go'
- '!cloud/testserver/**'
- '**_bench_test.go'
permissions:
pull-requests: write
jobs:
benchmarks:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: run benchcheck
id: benchmark
run: |
echo "result<<EOF" >> $GITHUB_OUTPUT
echo "$(make bench/check new=${{ github.event.pull_request.head.sha }} old=${{ github.event.pull_request.base.ref }})" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- uses: marocchino/sticky-pull-request-comment@v2
with:
header: benchmark
message: |
```
${{ steps.benchmark.outputs.result }}
```