Fix false positive for UnsupportedTypeMapping on byte array fields (#31) #75
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: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build-and-test: | |
| runs-on: windows-latest | |
| env: | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Install .NET tools | |
| run: | | |
| dotnet tool install --global dotnet-sonarscanner | |
| dotnet tool install --global dotnet-coverage | |
| dotnet tool install --global csharpier | |
| echo "$HOME/.dotnet/tools" >> $GITHUB_PATH | |
| - name: Check code formatting | |
| run: dotnet csharpier --check . | |
| - name: Begin SonarCloud analysis | |
| run: dotnet sonarscanner begin /k:"jonathanalgar_CustomCode-Analyzer" /o:"jonathanalgar" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml | |
| - name: Restore dependencies | |
| run: dotnet restore | |
| - name: Build and test Analyzer | |
| run: | | |
| dotnet build src/CustomCode-Analyzer/CustomCode-Analyzer.csproj --configuration Release | |
| dotnet build tests/CustomCode-Analyzer.Tests/CustomCode-Analyzer.Tests.csproj --configuration Release | |
| dotnet-coverage collect "dotnet test tests/CustomCode-Analyzer.Tests/CustomCode-Analyzer.Tests.csproj --no-build --configuration Release --verbosity normal" -f xml -o "coverage.xml" | |
| - name: Build VSIX | |
| run: msbuild src\CustomCode-Analyzer.Vsix\CustomCode-Analyzer.Vsix.csproj /p:Configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=Normal /m:4 | |
| - name: End SonarCloud analysis | |
| run: dotnet sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v4.5.0 | |
| with: | |
| name: build-artifacts | |
| path: | | |
| src/CustomCode-Analyzer.Vsix/bin/Release/CustomCode_Analyzer.vsix | |
| src/CustomCode-Analyzer/bin/Release/*.nupkg |