glowing-fiesta/.github/workflows/sonar.yml
Liviu Burcusel 8bec1a6364
Some checks failed
Sonar / SonarQube (push) Failing after 2s
Added lsb_release -a
2025-12-08 11:41:39 +01:00

56 lines
1.3 KiB
YAML

name: Sonar
permissions:
contents: read
pull-requests: write
on:
push:
branches:
- production
pull_request:
branches:
- production
types: [opened, synchronize, reopened]
jobs:
sonarqube:
name: SonarQube
runs-on: ubuntu-latest
steps:
- name: Misc actions
run: |
echo "This is a placeholder for miscellaneous actions."
uname -a
id
whoami
lsb_release -a
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node environment
uses: actions/setup-node@v4
with:
node-version: "24"
- 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: SonarQube Scan
# uses: SonarSource/sonarqube-scan-action@v6
# env:
# SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
#