1 pipeline #11
Workflow file for this run
This file contains 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
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: .NET | |
on: | |
push: | |
branches: [ "develop", "main" ] | |
pull_request: | |
branches: [ "develop", "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Prepare | |
run: sudo ethtool -K eth0 tx off rx off | |
- name: Build | |
run: dotnet build -c Debug | |
- name: Run Kafka KRaft Broker | |
uses: spicyparrot/[email protected] | |
with: | |
kafka-version: "3.6.1" | |
kafka-topics: "example,1" | |
- name: Test | |
run: dotnet test -c Debug --no-build --verbosity normal --settings .runsettings | |
env: | |
RUNNING_FROM_GITHUB_ACTIONS: "true" | |
- name: Report | |
run: | | |
dotnet tool restore | |
dotnet reportgenerator -reports:./artifacts/cob/*/coverage.cobertura.xml -targetdir:artifacts/html -reporttypes:HtmlInline | |
dotnet reportgenerator -reports:./artifacts/cob/*/coverage.cobertura.xml -targetdir:artifacts -reporttypes:"Cobertura;HtmlSummary;TextSummary" |