-
Notifications
You must be signed in to change notification settings - Fork 3
59 lines (53 loc) · 1.44 KB
/
run-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: run-tests
on:
workflow_dispatch:
pull_request:
branches:
- develop
paths-ignore:
- '**.md'
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
go:
- '1.16'
- '1.17'
- '1.18'
- '1.19'
- '1.20'
- '1.21'
proton:
- latest
services:
proton:
image: timeplus/timeplusd:${{ matrix.proton }}
ports:
- 3218:3218 # HTTP Streaming
- 8123:8123 # HTTP Snapshot
- 8463:8463 # TCP Streaming
- 5432:5432 # Postgres Snapshot
- 7587:7587 # TCP Snapshot
env:
MAX_CONCURRENT_QUERIES: 100 # Default: 100
MAX_CONCURRENT_SELECT_QUERIES: 100 # Default: 100
MAX_CONCURRENT_INSERT_QUERIES: 100 # Default: 100
MAX_CONCURRENT_STREAMING_QUERIES: 100 # Default: 100
MAX_SERVER_MEMORY_USAGE_TO_RAM_RATIO: 0.9 # Default: 0.9
MAX_SERVER_MEMORY_CACHE_TO_RAM_RATIO: 0.5 # Default: 0.5
volumes:
- /tmp/timeplusd:/var/lib/timeplusd
steps:
- uses: actions/checkout@v2
- name: Install Go ${{ matrix.go }}
uses: actions/setup-go@v2.1.5
with:
stable: false
go-version: ${{ matrix.go }}
- name: Run tests
run: |
go test -v .
go test -v ./tests
go test -v ./lib/...