Compare commits
2 Commits
db56945979
...
5603b173a5
| Author | SHA1 | Date | |
|---|---|---|---|
| 5603b173a5 | |||
| 668a18f62b |
@@ -27,24 +27,30 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24
|
node-version: 20
|
||||||
cache: npm
|
cache: npm
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
# ---------------- SONARQUBE ----------------
|
# ---------------- SONARQUBE ----------------
|
||||||
# In Gitea: Repository → Settings → Secrets and variables → add secret SONAR_TOKEN
|
# Gitea does not support actions with runs.using: node24 (e.g. sonarqube-scan-action master).
|
||||||
# (SonarQube user token). Name must be exactly SONAR_TOKEN — not the token value as the name.
|
# Use the CLI via npx (same as npm run sonar); optional SONAR_URL overrides sonar-project.properties.
|
||||||
|
# In Gitea: Settings → Secrets → SONAR_TOKEN (and optionally SONAR_URL).
|
||||||
- name: SonarQube Scan
|
- name: SonarQube Scan
|
||||||
uses: SonarSource/sonarqube-scan-action@v6
|
|
||||||
env:
|
env:
|
||||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||||
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
|
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
|
||||||
|
run: |
|
||||||
|
if [ -n "${SONAR_HOST_URL}" ]; then
|
||||||
|
npx --yes sonarqube-scanner -Dsonar.host.url="${SONAR_HOST_URL}"
|
||||||
|
else
|
||||||
|
npx --yes sonarqube-scanner
|
||||||
|
fi
|
||||||
|
|
||||||
# ---------------- ANDROID SDK (required on Ubuntu: ANDROID_HOME / sdk.dir) ----------------
|
# ---------------- ANDROID SDK (required on Ubuntu: ANDROID_HOME / sdk.dir) ----------------
|
||||||
- name: Setup Android SDK
|
- name: Setup Android SDK
|
||||||
uses: android-actions/setup-android@v4
|
uses: android-actions/setup-android@v3
|
||||||
with:
|
with:
|
||||||
packages: >-
|
packages: >-
|
||||||
tools platform-tools
|
tools platform-tools
|
||||||
|
|||||||
Reference in New Issue
Block a user