Skip to content

Update release-action.yml #32

Update release-action.yml

Update release-action.yml #32

Workflow file for this run

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/sonarscan-dotnet@v2.1.5
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