chore(deps): update dependency microsoft.codeanalysis.analyzers to 3.11.0 #755
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 | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
configuration: Release | |
productNamespacePrefix: "ReactiveMarbles" | |
jobs: | |
build: | |
runs-on: windows-2022 | |
outputs: | |
nbgv: ${{ steps.nbgv.outputs.SemVer2 }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4.1.7 | |
with: | |
fetch-depth: 0 | |
lfs: true | |
- name: Install .NET 6 | |
uses: actions/setup-dotnet@v4.0.1 | |
with: | |
dotnet-version: 6.0.x | |
# - name: Update VS2019 | |
# shell: powershell | |
# run: Start-Process -Wait -PassThru -FilePath "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" -ArgumentList "update --passive --norestart --installpath ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise""" | |
- name: NBGV | |
id: nbgv | |
uses: dotnet/nbgv@master | |
with: | |
setAllVars: true | |
- name: NuGet Restore | |
run: dotnet restore | |
working-directory: src | |
- name: Build | |
run: dotnet build --configuration=${{ env.configuration }} --verbosity=minimal --no-restore | |
working-directory: src | |
- name: Run Unit Tests and Generate Coverage | |
uses: glennawatson/coverlet-msbuild@v2 | |
with: | |
project-files: '**/*Tests*.csproj' | |
no-build: true | |
exclude-filter: '[${{env.productNamespacePrefix}}.*.Tests.*]*' | |
include-filter: '[${{env.productNamespacePrefix}}*]*' | |
output-format: cobertura | |
output: '../../artifacts/' | |
configuration: ${{ env.configuration }} | |
- name: Pack | |
run: dotnet pack --configuration=${{ env.configuration }} --verbosity=minimal --no-restore | |
working-directory: src | |
- name: Upload Code Coverage | |
uses: codecov/codecov-action@v4 | |
- name: Create NuGet Artifacts | |
uses: actions/upload-artifact@master | |
with: | |
name: nuget | |
path: '**/*.nupkg' |