Skip to content

Commit

Permalink
Attempt to fix bug in benchmark
Browse files Browse the repository at this point in the history
Works only with actions/checkout@v1.
  • Loading branch information
DimitriPapadopoulos committed Aug 31, 2024
1 parent cb3864e commit c955e83
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/bench_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
id: go

- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v2

- name: Get dependencies
run: |
Expand All @@ -26,7 +26,12 @@ jobs:
echo "New Commit:"
git log -1 --format="%H"
go test -bench=. -benchmem -benchtime=10x -count=7 > $HOME/new.txt
echo "Running: git reset --hard HEAD"
git reset --hard HEAD
echo "DEBUG:"
git remote -v
git branch
echo "git checkout \$GITHUB_BASE_REF ($GITHUB_BASE_REF)"
git checkout $GITHUB_BASE_REF
echo "Base Commit:"
git log -1 --format="%H"
Expand Down

0 comments on commit c955e83

Please sign in to comment.