Fix de compilación de controles #179
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: "Build MCART" | |
on: | |
push: | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.gitignore' | |
- '**/*.gitattributes' | |
branches-ignore: | |
- 'docs*' | |
tags-ignore: | |
- '*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
Solution_Name: src/MCART.sln | |
Configuration: Debug | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Install Codecov | |
run: choco install codecov -y | |
- name: Build and test MCART | |
run: dotnet test $env:Solution_Name --configuration=$env:Configuration --collect:"XPlat Code Coverage" --results-directory .\Build\tests -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | |
- name: Upload code coverage report | |
run: foreach ($j in (ls .\Build\tests\ -Directory)) { codecov -f "$($j.FullName)\coverage.opencover.xml" } | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
- name: Create NuGet Packages | |
run: dotnet pack $env:Solution_Name --configuration=$env:Configuration --version-suffix=$env:GITHUB_SHA --include-source -p:RepositoryBranch=${{ github.ref }} -p:ContinuousIntegrationBuild=true | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: MCART-nuget-packages | |
path: Build/Bin/**/*.nupkg |