mirror of
https://github.com/hibiken/asynq.git
synced 2025-04-22 16:50:18 +08:00
Tweak benchstat workflow
This commit is contained in:
parent
f0d455742a
commit
bcc639d083
20
.github/workflows/benchstat.yml
vendored
20
.github/workflows/benchstat.yml
vendored
@ -17,12 +17,12 @@ jobs:
|
||||
ports:
|
||||
- 6379:6379
|
||||
steps:
|
||||
- name: Install Go
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Benchmark
|
||||
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt
|
||||
- name: Upload Benchmark
|
||||
@ -30,6 +30,7 @@ jobs:
|
||||
with:
|
||||
name: bench-incoming
|
||||
path: bench.txt
|
||||
|
||||
current:
|
||||
runs-on: ubuntu-latest
|
||||
services:
|
||||
@ -38,14 +39,14 @@ jobs:
|
||||
ports:
|
||||
- 6379:6379
|
||||
steps:
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: master
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
- name: Benchmark
|
||||
run: go test -run=^$ -bench=. -count=5 -timeout=60m ./... | tee -a bench.txt
|
||||
- name: Upload Benchmark
|
||||
@ -53,11 +54,14 @@ jobs:
|
||||
with:
|
||||
name: bench-current
|
||||
path: bench.txt
|
||||
|
||||
benchstat:
|
||||
needs: [incoming, current]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Go
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15.x
|
||||
|
Loading…
x
Reference in New Issue
Block a user