-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 1.32 KB
/
push-action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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