Skip to content

Commit b5eec76

Browse files
authored
Merge pull request #9 from evosys21/klodoma-patch-1
Klodoma patch 1
2 parents f40a06c + d05eab3 commit b5eec76

File tree

2 files changed

+21
-14
lines changed

2 files changed

+21
-14
lines changed

.github/workflows/qa.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
name: QA
2-
32
on:
43
push:
54
branches:
65
- main
7-
6+
pull_request:
7+
types: [opened, synchronize, reopened]
88
jobs:
9-
build:
10-
name: Build
9+
sonarcloud:
10+
name: SonarCloud
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414
with:
1515
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
16-
- uses: sonarsource/sonarqube-scan-action@master
16+
- name: SonarCloud Scan
17+
uses: SonarSource/sonarcloud-github-action@master
1718
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
1820
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
19-
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
20-
# If you wish to fail your job when the Quality Gate is red, uncomment the
21-
# following lines. This would typically be used to fail a deployment.
22-
# - uses: sonarsource/sonarqube-quality-gate-action@master
23-
# timeout-minutes: 5
24-
# env:
25-
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar-project.properties

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
sonar.projectKey=phplib-test
1+
sonar.projectKey=evosys21_pdflib
2+
sonar.organization=evosys21
3+
4+
# This is the name and version displayed in the SonarCloud UI.
5+
#sonar.projectName=pdflib
6+
#sonar.projectVersion=1.0
7+
8+
9+
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
10+
#sonar.sources=.
11+
12+
# Encoding of the source code. Default is default system encoding
13+
#sonar.sourceEncoding=UTF-8

0 commit comments

Comments
 (0)