Skip to content

Commit

Permalink
Create build-core-lib.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dvoituron authored Apr 10, 2024
1 parent 27165db commit 01a147b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-core-lib.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 01a147b

Please sign in to comment.