Update SonarAnalyzer.CSharp to latest version #99
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: CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| jobs: | |
| pack: | |
| runs-on: ubuntu-22.04 # NuGet.exe is a Mono application on Linux and is not installed by default on `ubuntu-latest` runners | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Determine version for NuGet package | |
| run: echo NUGET_VERSION=0.$(date '+%Y.%m')-ci$(date '+%d%H%M%S') >> $GITHUB_ENV | |
| - name: Replace version number in nuspec files | |
| run: 'sed -i -e "s/{{NuGetVersion}}/$NUGET_VERSION/g" *.nuspec' | |
| - name: Setup NuGet.exe for use with actions | |
| uses: NuGet/setup-nuget@v2 | |
| - name: Create main package | |
| run: nuget pack Neolution.CodeAnalysis.nuspec | |
| - name: Create TestsRuleset package | |
| run: nuget pack Neolution.CodeAnalysis.TestsRuleset.nuspec |