From 14acb901fef22e78b1eb3192dc34b6157fc3daf9 Mon Sep 17 00:00:00 2001 From: Morgan Date: Thu, 3 Oct 2024 11:48:56 +0200 Subject: [PATCH] ci(hotfix): yaml whitespace (#2892)
Contributors' checklist... - [ ] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
--- .github/workflows/benchmark-master-push.yml | 72 ++++++++++----------- 1 file changed, 35 insertions(+), 37 deletions(-) diff --git a/.github/workflows/benchmark-master-push.yml b/.github/workflows/benchmark-master-push.yml index 49acab52076..fe8d1613b0d 100644 --- a/.github/workflows/benchmark-master-push.yml +++ b/.github/workflows/benchmark-master-push.yml @@ -5,8 +5,6 @@ on: branches: - master - # publish: true - permissions: # deployments permission to deploy GitHub pages website deployments: write @@ -26,41 +24,41 @@ jobs: with: fetch-depth: 1 - - uses: actions/setup-go@v5 - with: - go-version: "1.22.x" + - uses: actions/setup-go@v5 + with: + go-version: "1.22.x" - - name: Run benchmark - run: | - go test -benchmem -bench=. ./... -run=^$ \ - -cpu 1,2 -timeout 50m | tee benchmarks.txt + - name: Run benchmark + run: | + go test -benchmem -bench=. ./... -run=^$ \ + -cpu 1,2 -timeout 50m | tee benchmarks.txt - - name: Download previous benchmark data - uses: actions/cache@v4 - with: - path: ./cache - key: ${{ runner.os }}-benchmark + - name: Download previous benchmark data + uses: actions/cache@v4 + with: + path: ./cache + key: ${{ runner.os }}-benchmark - - name: Store benchmark results into `gh-benchmarks` branch - uses: benchmark-action/github-action-benchmark@v1 - # see https://github.com/benchmark-action/github-action-benchmark?tab=readme-ov-file#action-inputs - with: - name: Go Benchmarks - tool: 'go' - output-file-path: benchmarks.txt - # Where the previous data file is stored - external-data-json-path: ./cache/benchmark-data.json - max-items-in-chart: 100 - # Show alert with commit comment on detecting possible performance regression - alert-threshold: '120%' - fail-on-alert: true - comment-on-alert: true - alert-comment-cc-users: '@ajnavarro,@thehowl,@zivkovicmilos' - # Enable Job Summary for PRs - summary-always: true - github-token: ${{ secrets.GITHUB_TOKEN }} - # NOTE you need to use a separate GITHUB PAT token that has a write access to the specified repository. - # gh-repository: 'github.com/gnolang/benchmarks' # on gh-pages branch - gh-pages-branch: gh-benchmarks - benchmark-data-dir-path: . - auto-push: true + - name: Store benchmark results into `gh-benchmarks` branch + uses: benchmark-action/github-action-benchmark@v1 + # see https://github.com/benchmark-action/github-action-benchmark?tab=readme-ov-file#action-inputs + with: + name: Go Benchmarks + tool: "go" + output-file-path: benchmarks.txt + # Where the previous data file is stored + external-data-json-path: ./cache/benchmark-data.json + max-items-in-chart: 100 + # Show alert with commit comment on detecting possible performance regression + alert-threshold: "120%" + fail-on-alert: true + comment-on-alert: true + alert-comment-cc-users: "@ajnavarro,@thehowl,@zivkovicmilos" + # Enable Job Summary for PRs + summary-always: true + github-token: ${{ secrets.GITHUB_TOKEN }} + # NOTE you need to use a separate GITHUB PAT token that has a write access to the specified repository. + # gh-repository: 'github.com/gnolang/benchmarks' # on gh-pages branch + gh-pages-branch: gh-benchmarks + benchmark-data-dir-path: . + auto-push: true