add back latestMajor to global.json #97
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: run-ci | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| ci: | |
| name: ci | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: actions/setup-dotnet@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| java-version: 17 | |
| distribution: 'zulu' | |
| - name: Restore Tools | |
| run: | | |
| dotnet tool restore | |
| - name: Sonar Begin | |
| run: | | |
| dotnet dotnet-sonarscanner begin ` | |
| /k:"KuraiAndras_MediatR.Courier" ` | |
| /o:"kuraiandras" ` | |
| /d:sonar.token="${{ secrets.SONAR_TOKEN }}" ` | |
| /d:sonar.host.url="https://sonarcloud.io" ` | |
| /d:sonar.cs.opencover.reportsPaths=**/coverage.opencover.xml ` | |
| /d:sonar.cs.vstest.reportsPaths="**/*.trx" ` | |
| /d:sonar.scanner.scanAll=false ` | |
| /d:sonar.coverage.exclusions="MediatR.Courier.Examples.Wpf.Core/**/*.cs" ` | |
| - name: Restore NuGet packages | |
| run: dotnet restore | |
| - name: Build | |
| run: dotnet build --no-restore | |
| - name: Run Tests | |
| run: dotnet test --no-build --logger trx /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | |
| - name: Sonar End | |
| run: dotnet dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" |