Skip to content

runs-on: windows-latest #60

runs-on: windows-latest

runs-on: windows-latest #60

name: Test changes made on master branch
on:
pull_request:
branches: master
paths-ignore:
- '**.md'
jobs:
build_sln:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
2.x
3.x
6.x
7.x
8.x
- name: Run Tests
working-directory: src
run: dotnet test --configuration Release
- name: Build projects
shell: pwsh
run: |
$projects = "KissLog", "KissLog.RestClient", "KissLog.CloudListeners", "KissLog.AspNet.Web", "KissLog.AspNet.Mvc", "KissLog.AspNet.WebApi", "KissLog.AspNetCore"
foreach ($project in $projects) {
Write-Host "Building $project..."
dotnet build "src/$project/$project.csproj" --configuration Release /p:Version=1.0.0
dotnet pack "src/$project/$project.csproj" --no-build -o . /p:PackageVersion=1.0.0
}