Skip to content

Build and Test Solution - c1bfc93dcb62525280d2d29e4488f94d19a5ca3e #7

Build and Test Solution - c1bfc93dcb62525280d2d29e4488f94d19a5ca3e

Build and Test Solution - c1bfc93dcb62525280d2d29e4488f94d19a5ca3e #7

run-name: Build and Test Solution - ${{ github.sha }}
name: Build and Test Solution
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-and-test-solution:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.0.x'
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Add Keyfactor NuGet Source
run: dotnet nuget add source https://nuget.pkg.github.com/Keyfactor/index.json -n github -u ${{ github.actor }} -p ${{ secrets.V2BUILDTOKEN }} --store-password-in-clear-text
- name: Restore Dependencies
run: dotnet restore
- name: Build solution
run: dotnet build --no-restore --configuration Release
- name: Run Unit Tests
run: dotnet test --configuration Release --no-build --logger "console;verbosity=detailed"