Skip to content

Feature/create-release-actions #20

Feature/create-release-actions

Feature/create-release-actions #20

name: Test changes made on master branch
on:
pull_request:
branches: master
paths-ignore:
- '**.md'
jobs:
build_sln:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
8.0.x
- name: Run Tests
working-directory: src
run: dotnet test --configuration Release --verbosity n
- name: Build projects
run: |
PROJECTS="KissLog KissLog.RestClient KissLog.CloudListeners KissLog.AspNet.Web KissLog.AspNet.Mvc KissLog.AspNet.WebApi KissLog.AspNetCore"
for project in $PROJECTS; do
echo "Building $project..."
dotnet build "src/$project/$project.csproj" --configuration Release /p:Version=${{ github.event.inputs.release_version }}
dotnet pack "src/$project/$project.csproj" --no-build -o . /p:PackageVersion=${{ github.event.inputs.release_version }}
done