docs: update nuget ver #9
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
name: Kodify CI/CD | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
DOTNET_VERSION: '8.0.x' | |
jobs: | |
build: | |
name: Build, Test & Package | |
runs-on: ubuntu-latest | |
permissions: | |
checks: write | |
actions: read | |
contents: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build solution | |
run: dotnet build --configuration Release --no-restore | |
- name: Run tests | |
run: dotnet test Tests/Tests.csproj --configuration Release --logger "trx;LogFileName=TestResults.trx" --results-directory ./TestResults | |
- name: Publish test results | |
if: ${{ !github.event.pull_request.head.repo.fork }} | |
uses: dorny/test-reporter@v1 | |
with: | |
name: Test Results | |
path: "TestResults/**/*.trx" | |
reporter: dotnet-trx | |
- name: Upload build artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kodify-build | |
path: | | |
**/bin/Release/net8.0/* | |
**/publish/ |