Update README.md #7
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
| # 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: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build-linux: | |
| name: Build and Test (Linux - Core/Agent/Relay) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore Core | |
| run: dotnet restore Munin.Core/Munin.Core.csproj | |
| - name: Restore Agent | |
| run: dotnet restore Munin.Agent/Munin.Agent.csproj | |
| - name: Restore Core Tests | |
| run: dotnet restore tests/Munin.Core.Tests/Munin.Core.Tests.csproj | |
| - name: Restore Agent Tests | |
| run: dotnet restore tests/Munin.Agent.Tests/Munin.Agent.Tests.csproj | |
| - name: Build Core | |
| run: dotnet build Munin.Core/Munin.Core.csproj --no-restore | |
| - name: Build Agent | |
| run: dotnet build Munin.Agent/Munin.Agent.csproj --no-restore | |
| - name: Test Core | |
| run: dotnet test tests/Munin.Core.Tests/Munin.Core.Tests.csproj --no-restore --verbosity normal | |
| - name: Test Agent | |
| run: dotnet test tests/Munin.Agent.Tests/Munin.Agent.Tests.csproj --no-restore --verbosity normal | |
| build-windows: | |
| name: Build and Test (Windows - Full Suite) | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 8.0.x | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore | |
| - name: Test | |
| run: dotnet test --no-build --verbosity normal |