diff --git a/.github/workflows/bench_pr.yml b/.github/workflows/bench_pr.yml index 440a5f79..078640b8 100644 --- a/.github/workflows/bench_pr.yml +++ b/.github/workflows/bench_pr.yml @@ -8,13 +8,13 @@ jobs: GOBIN: /home/runner/go steps: - name: Set up Go 1.22 - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.22 id: go - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Get dependencies run: | @@ -27,6 +27,7 @@ jobs: git log -1 --format="%H" go test -bench=. -benchmem -benchtime=10x -count=7 > $HOME/new.txt git reset --hard HEAD + git fetch -a git checkout $GITHUB_BASE_REF echo "Base Commit:" git log -1 --format="%H" diff --git a/.github/workflows/bench_push.yml b/.github/workflows/bench_push.yml index f3cc605f..7f0517eb 100644 --- a/.github/workflows/bench_push.yml +++ b/.github/workflows/bench_push.yml @@ -8,13 +8,13 @@ jobs: GOBIN: /home/runner/go steps: - name: Set up Go 1.22 - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.22 id: go - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Get dependencies run: | diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index bdd3fe4d..c5f2386b 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -8,13 +8,13 @@ jobs: steps: - name: Set up Go 1.22 - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.22 id: go - name: Check out code - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Get dependencies run: |