Avoid dependencies on built-in libraries #50
Workflow file for this run
This file contains hidden or 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: Tests | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- "**/*.md" | |
pull_request: | |
branches: [main] | |
jobs: | |
coverage: | |
name: Code Coverage | |
uses: ./.github/workflows/reusable.yml | |
secrets: inherit | |
with: | |
coverage: true | |
permissions: | |
statuses: write | |
regress-clickhouse: | |
name: ClickHouse regression | |
uses: ./.github/workflows/reusable.yml | |
secrets: inherit | |
# needs: | |
# - coverage | |
with: | |
clickhouse-version: ${{ matrix.version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "24.8" | |
- "25.3" | |
- "25.4" | |
- "25.5" | |
- "25.6" | |
regress-dotnet: | |
name: .NET regression | |
uses: ./.github/workflows/reusable.yml | |
secrets: inherit | |
with: | |
framework: ${{ matrix.framework }} | |
# needs: | |
# - coverage | |
strategy: | |
fail-fast: false | |
matrix: | |
framework: ["net9.0", "net6.0"] | |
integration: | |
name: Integration Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
# needs: | |
# - coverage | |
services: | |
clickhouse: | |
image: clickhouse/clickhouse-server:latest | |
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: | | |
9.x | |
- name: Test | |
run: dotnet test ClickHouse.Driver.IntegrationTests/ClickHouse.Driver.IntegrationTests.csproj --framework net9.0 --configuration Release --verbosity normal --logger GitHubActions /clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:SkipAutoProps=true | |
env: | |
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=test;Password=test1234 | |
CLICKHOUSE_VERSION: latest | |
windows: | |
name: Windows Tests | |
if: false | |
runs-on: windows-latest | |
timeout-minutes: 15 | |
steps: | |
- uses: Vampire/setup-wsl@v5 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- shell: wsl-bash -u root {0} | |
run: | | |
sudo apt update | |
sudo apt upgrade -y | |
sudo apt install curl -y | |
curl https://clickhouse.com/ | sh | |
./clickhouse server --daemon | |
- uses: actions/cache@v4 | |
name: Cache NuGet | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Test | |
run: dotnet test ClickHouse.Driver.Tests/ClickHouse.Driver.Tests.csproj | |
--framework net48 --configuration Release --verbosity normal --logger GitHubActions | |
/clp:ErrorsOnly /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:SkipAutoProps=true | |
--filter "FullyQualifiedName ~ ADO" | |
env: | |
CLICKHOUSE_CONNECTION: Host=localhost;Port=8123;Username=default |