Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge coverage and regression into one config #148

Merged
merged 1 commit into from
Jul 13, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 0 additions & 45 deletions .github/workflows/regression.yml

This file was deleted.

41 changes: 37 additions & 4 deletions .github/workflows/coverage.yml → .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Test coverage build
# Installs additional packages, so artifacts are "Tainted" and cannot be used
name: Coverage
name: Tests

on:
push:
Expand All @@ -12,7 +10,7 @@ on:

jobs:
coverage:
name: Run coverage
name: Coverage
runs-on: ubuntu-latest

services:
Expand Down Expand Up @@ -74,3 +72,38 @@ jobs:
with:
recreate: true
path: code-coverage-results.md

regress:
name: Regression
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tag:
- 'yandex/clickhouse-server:20.3.18.10'
services:
clickhouse:
image: ${{ matrix.tag }}
ports:
- 8123:8123
steps:
- uses: actions/checkout@v2

- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.x'

- name: Install GitHubActionsTestLogger
run: dotnet add ClickHouse.Client.Tests/ClickHouse.Client.Tests.csproj package GitHubActionsTestLogger

- name: Install dependencies
run: dotnet restore

- name: Build
run: dotnet build --framework netstandard2.1 --configuration Release --no-restore ClickHouse.Client/ClickHouse.Client.csproj

- name: Test
run: dotnet test --framework net6.0 --configuration Release --no-restore --verbosity normal --logger GitHubActions
env:
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123