Skip to content

codecov

codecov #1

Workflow file for this run

name: Build & Test

Check failure on line 1 in .github/workflows/reusable.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/reusable.yml

Invalid workflow file

(Line: 70, Col: 11): A sequence was not expected, (Line: 72, Col: 13): A mapping was not expected
on:
workflow_call:
inputs:
framework:
default: net9.0
required: false
type: string
clickhouse-version:
default: latest
required: false
type: string
coverage:
default: false
required: false
type: boolean
jobs:
build-and-test:
name: Build & Test
runs-on: ubuntu-22.04
timeout-minutes: 5
services:
clickhouse:
image: clickhouse/clickhouse-server:${{ inputs.clickhouse-version }}
ports:
- 8123:8123
env:
CLICKHOUSE_DB: test
CLICKHOUSE_USER: test
CLICKHOUSE_PASSWORD: test1234
CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT: "1"
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/cache@v4
name: Cache NuGet
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
3.1.x
5.x
8.x
9.x
- name: Test
run: dotnet test ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj --framework ${{ inputs.framework }} --configuration Release --verbosity normal --logger GitHubActions /clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:SkipAutoProps=true
env:
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=test;Password=test1234
CLICKHOUSE_VERSION: ${{ inputs.clickhouse-version }}
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
disable_search: true
files: ./ClickHouse.Driver.Tests/coverage.${{ inputs.framework }}.opencover.xml
ignore:
- ClickHouse.Driver/Properties/Resources.Designer.cs
coverage:
precision: 2
round: down
range: "80...100"