Skip to content

Commit a8dc209

Browse files
committed
Fix benchmarker workflow.
Fix benchmarker workflow.
1 parent d3c5fa4 commit a8dc209

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yaml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@ jobs:
66
matrix:
77
platform: [ubuntu-latest]
88
runs-on: ${{ matrix.platform }}
9+
services:
10+
postgres:
11+
image: 'postgres:latest'
12+
ports:
13+
- '5432:5432'
14+
env:
15+
POSTGRES_USER: postgres
16+
POSTGRES_PASSWORD: postgres
17+
POSTGRES_DB: test
918
steps:
1019
- name: Fetch Repository
1120
uses: actions/checkout@v3
12-
- name: Run Benchmark
13-
run: docker-compose up
21+
- name: Build Benchmarker
22+
run: go build main.go
23+
- name: Run Benchmarker
24+
run: ./main -source="host=localhost user=postgres password=postgres dbname=test sslmode=disable" -orm=all -multi=1 -debug=false

0 commit comments

Comments
 (0)