1
0
mirror of https://github.com/uptrace/go-clickhouse.git synced 2025-12-24 00:01:10 +02:00

feat: initial commit

This commit is contained in:
Vladimir Mihailenco
2022-01-23 09:36:24 +02:00
commit 092a2dbf28
125 changed files with 14450 additions and 0 deletions

36
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: Go
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
name: build
runs-on: ubuntu-latest
services:
clickhouse:
image: clickhouse/clickhouse-server:21.12
options: >-
--health-cmd "clickhouse-client -q 'select 1'" --health-interval 10s --health-timeout 5s
--health-retries 5
ports:
- 9000:9000
steps:
- name: Set up ${{ matrix.go-version }}
uses: actions/setup-go@v2
with:
go-version: 1.18.0-beta1
stable: false
- name: Checkout code
uses: actions/checkout@v3
- name: Test
run: make test
env:
CH: clickhouse://localhost:9000/default?sslmode=disable

11
.github/workflows/commitlint.yml vendored Normal file
View File

@@ -0,0 +1,11 @@
name: Lint Commit Messages
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4

19
.github/workflows/golangci-lint.yml vendored Normal file
View File

@@ -0,0 +1,19 @@
name: golangci-lint
on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3.1.0

18
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,18 @@
name: Releases
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ncipollo/release-action@v1
with:
body:
Please refer to
[CHANGELOG.md](https://github.com/uptrace/go-clickhouse/blob/master/CHANGELOG.md) for
details