sonar testing
RN APK Build / build (push) Failing after 3m2s

This commit is contained in:
NishantRajputRN
2026-05-12 15:41:45 +05:30
parent b43612fca1
commit 4515112b63
4 changed files with 17 additions and 4 deletions
+11 -3
View File
@@ -23,6 +23,14 @@ jobs:
- name: Install dependencies
run: npm ci
# ---------------- SONARQUBE ----------------
# Set repository secret SONAR_TOKEN (User token from SonarQube). Do not commit tokens to git.
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v4
env:
SONAR_TOKEN: ${{ secrets.sqp_b87b0e90564ffc64e9059611d458d777d5148b8b }}
SONAR_HOST_URL: http://98.70.31.53:9000
# ---------------- JAVA ----------------
# - name: Setup Java
# uses: actions/setup-java@v4
@@ -51,13 +59,13 @@ jobs:
# ---------------- SAVE TO VM ----------------
- name: Save APK to VM folder
run: |
mkdir -p /home/pgadmin1/builds
cp android/app/build/outputs/apk/release/*.apk /home/pgadmin1/builds/
mkdir -p /home/azureuser/builds
cp android/app/build/outputs/apk/release/*.apk /home/azureuser/builds/
# ---------------- VERIFY FINAL ----------------
- name: Verify APK in VM
run: |
ls -l /home/pgadmin1/builds
ls -l /home/azureuser/builds
# ---------------- (OPTIONAL) ARTIFACT ----------------
- name: Upload APK (optional)
+2 -1
View File
@@ -1,2 +1,3 @@
console.log("trest")
console.log("trest")
console.log("test2")
+1
View File
@@ -8,6 +8,7 @@
"lint": "eslint .",
"start": "react-native start",
"test": "jest",
"sonar": "npx --yes sonarqube-scanner",
"postinstall": "patch-package",
"clean": "react-native-clean-project",
"start:poll": "react-native start --watchFolders . --reset-cache --no-interactive --config metro.config.js"
+3
View File
@@ -0,0 +1,3 @@
sonar.projectKey=novaCodeTest
sonar.sources=.
sonar.exclusions=**/node_modules/**,**/android/build/**,**/ios/Pods/**,**/ios/build/**