Skip to content

Commit

Permalink
fix CI file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabriel-vasile committed Oct 11, 2024
1 parent 7798415 commit 06609f7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/benchmark.go → .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
go-version-file: 'go.mod'
- run: go install golang.org/x/perf/cmd/benchstat@latest
// Base for comparison is master branch.
# Base for comparison is master branch.
- name: Checkout code
uses: actions/[email protected]
with:
Expand All @@ -26,15 +26,15 @@ jobs:
uses: actions/[email protected]
- run: go test -run=none -bench=. --count=7 > /tmp/curr &

// Wait for both benchmarks to complete before comparing.
# Wait for both benchmarks to complete before comparing.
- run: wait
- run: RESULT="$(benchstat /tmp/prev /tmp/curr)"
- uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: $RESULT
})
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: $RESULT
})

0 comments on commit 06609f7

Please sign in to comment.