Skip to content

Commit 29ce4e8

Browse files
committed
update wf
1 parent de56084 commit 29ce4e8

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

.github/workflows/bench.yml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: github.event_name == 'workflow_dispatch' || (github.event.issue.pull_request && contains(github.event.comment.body, '!bench'))
1212
steps:
13-
- name: Set up Go
14-
uses: actions/setup-go@v3
15-
with:
16-
go-version: 1.19
17-
check-latest: true
18-
cache: true
19-
20-
- name: Start Redis
21-
uses: shogo82148/actions-setup-redis@v1
22-
with:
23-
auto-start: true
24-
redis-port: 6379
25-
redis-version: '6.2'
26-
redis-conf: 'requirepass RedisPassw0rd'
27-
28-
- name: Start MySQL
29-
run: sudo /etc/init.d/mysql start
30-
3113
- name: Install Hyperfine
3214
run: |
3315
wget https://github.com/sharkdp/hyperfine/releases/download/v1.11.0/hyperfine_1.11.0_amd64.deb
@@ -48,6 +30,13 @@ jobs:
4830
with:
4931
ref: ${{ steps.sha.outputs.result || github.sha }}
5032

33+
- name: Set up Go
34+
uses: actions/setup-go@v3
35+
with:
36+
go-version: 1.19
37+
check-latest: true
38+
cache: true
39+
5140
- name: Build PR
5241
run: |
5342
go build -o bench-pr ./bench
@@ -62,6 +51,17 @@ jobs:
6251
run: |
6352
go build -o bench-main ./bench
6453
54+
- name: Start Redis
55+
uses: shogo82148/actions-setup-redis@v1
56+
with:
57+
auto-start: true
58+
redis-port: 6379
59+
redis-version: '6.2'
60+
redis-conf: 'requirepass RedisPassw0rd'
61+
62+
- name: Start MySQL
63+
run: sudo /etc/init.d/mysql start
64+
6565
- name: Run benchmarks - mysql
6666
run: |
6767
hyperfine --warmup 1 --export-markdown bench-mysql.md -n 'mysql-main' './bench-main -runs 2' -n 'mysql-pr' './bench-pr -runs 2'

0 commit comments

Comments
 (0)