Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoisaiah committed Oct 30, 2023
1 parent 29c62cd commit f541797
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
go-version: '1.21'
check-latest: true

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install the latest versions of each library
run: go get -u ./... && go mod tidy

Expand All @@ -31,27 +36,7 @@ jobs:
- name: Benchmark Go Logging Libraries
run: go test -bench . -benchmem ./... | gobenchdata --json bench.json

- name: Commit benchmark results to repo
uses: EndBug/add-and-commit@v9
with:
message: Update benchmark results
commit: '--no-verify'

update_report:
runs-on: ubuntu-latest
needs: run_benchmark
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependences
- name: Install dependencies
working-directory: ./docs
run: npm install

Expand All @@ -62,5 +47,5 @@ jobs:
- name: Commit benchmark results to repo
uses: EndBug/add-and-commit@v9
with:
message: Update benchmark report
message: Update benchmark results
commit: '--no-verify'

0 comments on commit f541797

Please sign in to comment.