updating vulnerable packages + An obselete package to be in sync wit… #355
This file contains hidden or 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 Full Build | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
tags: | |
- 'v*' | |
pull_request: | |
branches: [ main ] | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | |
- name: Setup MSBuild.exe | |
uses: microsoft/setup-msbuild@2008f912f56e61277eefaac6d1888b750582aa16 | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
- name: Restore Windows Projects | |
run: msbuild PullRequestQuantifierDotNetFull.sln /t:Restore /p:Configuration=Release | |
- name: Build Windows Projects | |
run: msbuild PullRequestQuantifierDotNetFull.sln /p:Configuration=Release | |
- name: Install dependencies | |
run: dotnet restore PullRequestQuantifier.sln | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
- name: Test | |
run: dotnet test PullRequestQuantifier.sln --configuration Release --verbosity normal --collect:"XPlat Code Coverage" --settings coverlet.runsettings.xml --results-directory ./coverlet-results | |
#todo upload artifacts to release |