docs: nuget separate readme #132
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
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'r/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - 'r/**' | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 5 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup .NET 6.0 | |
| uses: actions/setup-dotnet@v1 | |
| with: | |
| dotnet-version: 6.0.x | |
| - name: Install SonarCloud global tool | |
| run: dotnet tool install --global dotnet-sonarscanner | |
| - name: Begin SonarCloud scan | |
| run: dotnet sonarscanner begin /o:"photo-cli" /k:"photo-cli_photo-cli" /d:sonar.cs.opencover.reportsPaths="**/*.opencover.xml" /d:sonar.login=${{secrets.SONAR_TOKEN}} /d:sonar.host.url="https://sonarcloud.io" | |
| env: | |
| SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} | |
| - name: Build | |
| run: dotnet build --configuration Release | |
| - name: Test | |
| env: | |
| PHOTO_CLI_BIG_DATA_CLOUD_API_KEY: ${{secrets.PHOTO_CLI_BIG_DATA_CLOUD_API_KEY}} | |
| PHOTO_CLI_GOOGLE_MAPS_API_KEY: ${{secrets.PHOTO_CLI_GOOGLE_MAPS_API_KEY}} | |
| PHOTO_CLI_MAPQUEST_API_KEY: ${{secrets.PHOTO_CLI_MAPQUEST_API_KEY}} | |
| PHOTO_CLI_LOCATIONIQ_API_KEY: ${{secrets.PHOTO_CLI_LOCATIONIQ_API_KEY}} | |
| run: dotnet test --configuration Release --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=opencover | |
| - name: End SonarCloud scan | |
| run: dotnet sonarscanner end /d:sonar.login=${{secrets.SONAR_TOKEN}} | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| SONAR_TOKEN: ${{secrets.SONAR_TOKEN}} |