fix: Add next steps to quick start guide (#19125) #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Destination Plugin ClickHouse Workflow | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
pull_request: | |
paths: | |
- plugins/destination/clickhouse/** | |
- .github/workflows/dest_clickhouse.yml | |
push: | |
branches: | |
- main | |
paths: | |
- plugins/destination/clickhouse/** | |
- .github/workflows/dest_clickhouse.yml | |
jobs: | |
plugins-destination-clickhouse: | |
name: "plugins/destination/clickhouse" | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
env: | |
DB_USER: cq | |
DB_PASSWORD: test | |
DB_NAME: cloudquery | |
defaults: | |
run: | |
working-directory: plugins/destination/clickhouse | |
services: | |
clickhouse: | |
image: clickhouse/clickhouse-server:22.1.2 | |
env: | |
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: 1 | |
CLICKHOUSE_PASSWORD: ${{ env.DB_PASSWORD }} | |
CLICKHOUSE_USER: ${{ env.DB_USER }} | |
CLICKHOUSE_DB: ${{ env.DB_NAME }} | |
ports: | |
- 8123:8123 | |
- 9000:9000 | |
options: >- | |
--ulimit nofile=262144:262144 | |
--health-cmd "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1" | |
--health-interval 60s | |
--health-timeout 30s | |
--health-start-period 20s | |
--health-retries 5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Set up Go 1.x | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: plugins/destination/clickhouse/go.mod | |
cache: true | |
cache-dependency-path: plugins/destination/clickhouse/go.sum | |
- name: golangci-lint | |
uses: cloudquery/golangci-lint-action@master | |
with: | |
version: v1.55.2 | |
working-directory: plugins/destination/clickhouse | |
args: "--config ../../.golangci.yml" | |
- name: gen | |
if: github.event_name == 'pull_request' | |
run: make gen | |
- name: Fail if generation updated files | |
if: github.event_name == 'pull_request' | |
run: test "$(git status -s | wc -l)" -eq 0 || (git status -s; exit 1) | |
- name: Build | |
run: go build . | |
- name: Test ClickHouse | |
env: | |
CQ_DEST_CH_TEST_CONN: "clickhouse://${{ env.DB_USER }}:${{ env.DB_PASSWORD }}@localhost:9000/${{ env.DB_NAME }}" | |
run: make test | |