diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 9248d13bf..26e8ca179 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -12,6 +12,8 @@ jobs: benchmark: name: Benchmark runs-on: ubuntu-latest + timeout-minutes: 30 + steps: - uses: actions/checkout@v4 @@ -20,7 +22,7 @@ jobs: go-version: "stable" - name: Run benchmark - run: go test ./... -bench Benchmark -benchmem | tee output.txt + run: go test ./... -timeout 20m -bench Benchmark -benchmem | tee output.txt - name: Store benchmark result uses: benchmark-action/github-action-benchmark@v1 @@ -29,6 +31,7 @@ jobs: tool: 'go' output-file-path: output.txt github-token: ${{ secrets.GITHUB_TOKEN }} + skip-fetch-gh-pages: true auto-push: true # Show alert with commit comment on detecting possible performance regression alert-threshold: '120%'