From 01a147b65e71037724cb2242c9c4e892b59cbef7 Mon Sep 17 00:00:00 2001 From: Denis Voituron Date: Wed, 10 Apr 2024 10:51:40 +0200 Subject: [PATCH] Create build-core-lib.yml --- .github/workflows/build-core-lib.yml | 47 ++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/build-core-lib.yml diff --git a/.github/workflows/build-core-lib.yml b/.github/workflows/build-core-lib.yml new file mode 100644 index 0000000000..3ff59b65f3 --- /dev/null +++ b/.github/workflows/build-core-lib.yml @@ -0,0 +1,47 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: Build and Test Code Lib + +on: + push: + branches: + - dev + paths-ignore: + - '**/*.gitignore' + - '**/*.gitattributes' + + pull_request: + types: [opened, synchronize, reopened, closed] + branches: + - dev + paths-ignore: + - '**/*.gitignore' + - '**/*.gitattributes' + +jobs: + build: + + runs-on: ubuntu-latest + + env: + PROJECTS: "./src/Core/Microsoft.FluentUI.AspNetCore.Components.csproj" + TESTS: "/tests/Core/Microsoft.FluentUI.AspNetCore.Components.Tests.csproj" + + steps: + - name: Checkout source + uses: actions/checkout@v4 + + - name: Setup .NET 8.0 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore + run: dotnet restore + + - name: Build + run: dotnet build ${{ env.PROJECTS }} --configuration Release + + - name: Test + run: dotnet test ${{ env.TESTS }} --verbosity normal --configuration Release /p:CollectCoverage=true /p:CoverletOutputFormat=cobertura /p:DebugType=Full