chore(deps): bump golang.org/x/tools from 0.14.0 to 0.15.0 #1155
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bench | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
benchmark: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout latest code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: '1.21.x' | |
cache: false | |
- name: Get Go environment | |
id: go-env | |
run: echo "::set-output name=modcache::$(go env GOMODCACHE)" | |
- name: Set up cache | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.go-env.outputs.modcache }} | |
key: benchmark-${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}-${{ hashFiles('**/go.mod') }} | |
restore-keys: | | |
benchmark-${{ runner.os }}-go- | |
# Run all benchmarks. | |
- name: Run benchmarks | |
run: go test -benchtime 100ms -v -bench . -run ^$ ./... | tee benchmark.txt | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: benchmark-result | |
path: benchmark.txt | |
if-no-files-found: error | |
retention-days: 1 |