Skip to content

Set up CI with Azure Pipelines #3

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
15 changes: 14 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
run: dotnet test KsqlDb.Client.UnitTests.dll

integration-tests-linux:
name: Integration tests
name: Integration tests on Linux
needs: build
runs-on: ubuntu-latest
env:
Expand Down Expand Up @@ -128,3 +128,16 @@ jobs:
run: timeout 2m bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' http://127.0.0.1:8088/info)" != "200" ]]; do sleep 5; done' || false
- name: Run test
run: dotnet test KsqlDb.Client.IntegrationTests.dll

# Hopefully, it will be possible to run it without Azure Pipelines in near future.
integration-tests-windows:
name: Integration tests on Windows
needs: build
runs-on: ubuntu-latest
steps:
- name: Run Azure Pipelines
uses: Azure/pipelines@v1
with:
azure-devops-project-url: 'https://dev.azure.com/alexbasiuk/KsqlDb.Client'
azure-pipeline-name: 'alex-basiuk.ksqlDB-client-dotnet'
azure-devops-token: '${{ secrets.AZURE_DEVOPS_TOKEN }}'
23 changes: 23 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# The pipeline is triggered by GitHub Actions
pool:
vmImage: 'windows-latest'

steps:
- task: UseDotNet@2
displayName: 'Install .NET 5.0'
inputs:
version: 5.0.x
performMultiLevelLookup: true
includePreviewVersions: false

- task: DotNetCoreCLI@2
displayName: 'dotnet build Release'
inputs:
command: 'build'
arguments: '--configuration Release'

- task: DotNetCoreCLI@2
inputs:
command: test
projects: 'test/KsqlDb.Client.IntegrationTests/KsqlDb.Client.IntegrationTests.csproj'
arguments: '--configuration Release'