Skip to content

Commit 4945878

Browse files
author
Achille
authored
github actions fixes (#97)
* github actions fixes * use go 1.17 in benchmarks * set benchtime to 3s
1 parent be43fdb commit 4945878

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/benchmark.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ jobs:
1616
steps:
1717
- name: Steup Go
1818
uses: actions/setup-go@v2
19+
with:
20+
go-version: 1.17
1921

2022
- name: Checkout
2123
uses: actions/checkout@v2
2224
with:
2325
ref: ${{ matrix.ref }}
2426

2527
- name: Run Benchmarks
26-
run: go test -v -run '^$$' -bench '(Marshal|Unmarshal)$$/codeResponse' -benchmem -cpu 1 -count 5 ./json | tee bench.txt
28+
run: go test -v -run '^$' -bench '(Marshal|Unmarshal)$/codeResponse' -benchmem -benchtime 3s -cpu 1 -count 5 ./json | tee bench.txt
2729

2830
- name: Upload Benchmarks
2931
uses: actions/upload-artifact@v2

0 commit comments

Comments
 (0)