Skip to content

Merge pull request #189 from mailru/update-golang #80

Merge pull request #189 from mailru/update-golang

Merge pull request #189 from mailru/update-golang #80

Workflow file for this run

name: Test
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run linter
uses: golangci/golangci-lint-action@v6
with:
version: latest
test:
runs-on: ubuntu-latest
env:
TEST_CLICKHOUSE_DSN: http://localhost:8123/default
strategy:
fail-fast: false
matrix:
go: ["1.20", "1.21", "1.22", "1.23"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
- name: Run tests
run: go test -v -coverprofile=profile.cov ./...
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
flag-name: Go-${{ matrix.go }}
parallel: true
services:
clickhouse:
image: clickhouse/clickhouse-server:latest
ports:
- 8123:8123