Bump GenHTTP.Core.Kestrel and GenHTTP.Modules.IO #364
Workflow file for this run
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: | |
| pull_request: | |
| types: [opened] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
| DOTNET_ROLL_FORWARD: Major | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 10.0 | |
| - name: Restore tools | |
| run: dotnet tool restore | |
| - name: Begin scan | |
| if: env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' | |
| run: dotnet sonarscanner begin /o:"kaliumhexacyanoferrat" /k:"GenHTTP.Gateway" /d:sonar.token="$SONAR_TOKEN" /d:sonar.cs.opencover.reportsPaths="**/coverage.opencover.xml" /d:sonar.exclusions="**/bin/**/*,**/obj/**/*" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.branch.name="${GITHUB_REF##*/}" | |
| - name: Build project | |
| run: dotnet build GenHTTP.Gateway.sln -c Release | |
| - name: Test project | |
| run: dotnet test -c Release --no-build GenHTTP.Gateway.sln --collect:"XPlat Code Coverage" -- DataCollectionRunSettings.DataCollectors.DataCollector.Configuration.Format=opencover | |
| - name: End scan | |
| if: env.SONAR_TOKEN != null && env.SONAR_TOKEN != '' | |
| run: dotnet sonarscanner end /d:sonar.token="$SONAR_TOKEN" |