Skip to content

refactor: disambiguate abs/rel paths with types. #3988

refactor: disambiguate abs/rel paths with types.

refactor: disambiguate abs/rel paths with types. #3988

Workflow file for this run

# Copyright 2023 Terramate GmbH
# SPDX-License-Identifier: MPL-2.0
name: benchmarks
on:
pull_request:
paths:
- '**.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 }}
```