forked from danielkurniadi/clickhouse
-
-
Notifications
You must be signed in to change notification settings - Fork 73
44 lines (37 loc) · 863 Bytes
/
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
name: tests
on:
push:
branches-ignore:
- 'gh-pages'
pull_request:
branches-ignore:
- 'gh-pages'
jobs:
# Label of the container job
clickhouse:
strategy:
matrix:
dbversion: ['clickhouse/clickhouse-server']
go: ['1.21', '1.22']
platform: [ubuntu-latest]
runs-on: ${{ matrix.platform }}
services:
clickhouse:
image: ${{ matrix.dbversion }}
env:
CLICKHOUSE_DB: gorm
CLICKHOUSE_USER: gorm
CLICKHOUSE_PASSWORD: gorm
ports:
- 9941:8123
- 9942:9000
- 9943:9009
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Tests
run: go test