Skip to content

Add ClickHouse Database Backend #221

Add ClickHouse Database Backend

Add ClickHouse Database Backend #221

name: go test
on:
pull_request:
branches:
- main
jobs:
test:
name: Testing
runs-on: ubuntu-latest
services:
postgres:
image: postgres
ports:
- "5432:5432"
env:
POSTGRES_PASSWORD: password
POSTGRES_USER: nebula_test
POSTGRES_DB: nebula_test
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
clickhouse:
image: clickhouse/clickhouse-server:24.12
ports:
- "8124:8123"
- "9001:9000"
env:
CLICKHOUSE_PASSWORD: password_test
CLICKHOUSE_USER: nebula_test
CLICKHOUSE_DB: nebula_test
options: >-
--health-cmd "clickhouse-client --query=\"SELECT 1\""
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checking out repository code
uses: actions/checkout@v4
- name: Setting up Golang
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Running tests
run: make test