Update release-action.yml #32
This file contains 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: Push | |
on: | |
push: | |
branches: | |
- '**' | |
jobs: | |
build-and-analyze: | |
runs-on: ubuntu-latest | |
env: | |
sonar_project_key: Byteology_typed-http-clients | |
sonar_project_name: typed-http-clients | |
sonar_organization: byteology | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: SonarScanner for .NET 6 | |
uses: highbyte/[email protected] | |
with: | |
# The key of the SonarQube project | |
sonarProjectKey: ${sonar_project_key} | |
# The name of the SonarQube project | |
sonarProjectName: ${sonar_project_name} | |
# The name of the SonarQube organization in SonarCloud. For hosted SonarQube, skip this setting. | |
sonarOrganization: ${sonar_organization} | |
# Optional command arguments to dotnet build | |
dotnetBuildArguments: --configuration Release | |
# Optional command arguments to dotnet test | |
dotnetTestArguments: --no-build --configuration Release --verbosity normal --settings ./.sonar/coverlet.runsettings --logger:trx | |
# Optional extra command arguments the the SonarScanner 'begin' command | |
sonarBeginArguments: /s:$GITHUB_WORKSPACE/.sonar/SonarQube.Analysis.xml |