Skip to content

Configure CI/CD pipeline #1 #7

Configure CI/CD pipeline #1

Configure CI/CD pipeline #1 #7

Workflow file for this run

# 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 --logger:"console;verbosity=detailed"
env:
KAFKA_BOOTSTRAP_SERVERS: ${{ env.kafka_runner_address }}:9093
- 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"