Merge pull request #93 from dme-compunet/dependabot/nuget/Source/Micr… #127
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: .NET Build & Test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
MAIN_PROJECT: Source/YoloSharp/YoloSharp.csproj | |
DEMO_PROJECT: Source/YoloSharp.Demo/YoloSharp.Demo.csproj | |
TEST_PROJECT: Source/YoloSharp.Tests/YoloSharp.Tests.csproj | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Build YoloSharp | |
run: dotnet build ${{ env.MAIN_PROJECT }} | |
- name: Build YoloSharp.Demo | |
run: dotnet build ${{ env.DEMO_PROJECT }} | |
- name: Run Tests | |
run: dotnet test ${{ env.TEST_PROJECT }} |