Update .github/workflows/sonar.yml
All checks were successful
Sonar / SonarQube (push) Successful in 1m24s
Sonar / Docker stuff (push) Successful in 1s

This commit is contained in:
Liviu Burcusel 2025-12-08 14:47:22 +01:00
parent 55f177b571
commit b80eb9634e

View file

@ -15,40 +15,34 @@ jobs:
name: SonarQube
runs-on: node24
steps:
- name: Miscellaneous setup
run: |
echo "This is a placeholder for SonarQube analysis."
uname -a
id
apt update
# - name: Setup node environment
# uses: actions/setup-node@v4
# with:
# node-version: "24"
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - name: Install dependencies
# run: npm ci
# - name: Run tests and generate coverage
# run: npm run coverage
# # continue-on-error: true
# env:
# CI: true
# - name: Build site
# env:
# NODE_ENV: production
# NITRO_PRESET: node_cluster
# run: npm run build
# - name: Upload build artifacts
# uses: actions/upload-artifact@v3
# with:
# name: output
# path: .output/
# overwrite: true
# include-hidden-files: true
- name: Setup Node environment
uses: actions/setup-node@v4
with:
node-version: "24"
- name: Code checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: npm ci
- name: Run tests and generate coverage
run: npm run coverage
# continue-on-error: true
env:
CI: true
- name: Build site
env:
NODE_ENV: production
NITRO_PRESET: node_cluster
NITRO_CLUSTER_WORKERS: 4
run: npm run build
- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: output
path: .output/
overwrite: true
include-hidden-files: true
#- name: SonarQube Scan
# uses: SonarSource/sonarqube-scan-action@v6
# env: