Skip to content

Commit 2358d47

Browse files
authored
Merge pull request #24 from linaro-its/fix-sonar-checking
Fix sonar testing
2 parents b560e05 + be512f5 commit 2358d47

File tree

4 files changed

+31
-55
lines changed

4 files changed

+31
-55
lines changed

.github/workflows/build.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
10+
jobs:
11+
build:
12+
name: Build and analyze
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
19+
- uses: sonarsource/sonarqube-scan-action@v4
20+
env:
21+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
23+
# If you wish to fail your job when the Quality Gate is red, uncomment the
24+
# following lines. This would typically be used to fail a deployment.
25+
# We do not recommend to use this in a pull request. Prefer using pull request
26+
# decoration instead.
27+
# - uses: sonarsource/sonarqube-quality-gate-action@v1
28+
# timeout-minutes: 5
29+
# env:
30+
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/pullrequest.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/push.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.projectKey=linaro-its_github-action-scripts_9b2d2212-afd9-4e77-9031-4fdaa073508f

0 commit comments

Comments
 (0)