parent
f240804481
commit
79b156344d
1 changed files with 34 additions and 27 deletions
61
.github/workflows/sonar.yml
vendored
61
.github/workflows/sonar.yml
vendored
|
|
@ -15,33 +15,40 @@ jobs:
|
||||||
name: SonarQube
|
name: SonarQube
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Setup node environment
|
- name: Miscellaneous setup
|
||||||
uses: actions/setup-node@v4
|
run: |
|
||||||
with:
|
echo "This is a placeholder for SonarQube analysis."
|
||||||
node-version: "24"
|
uname -a
|
||||||
- name: Checkout code
|
id
|
||||||
uses: actions/checkout@v4
|
lsb_release -a
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
# - name: Setup node environment
|
||||||
- name: Install dependencies
|
# uses: actions/setup-node@v4
|
||||||
run: npm ci
|
# with:
|
||||||
- name: Run tests and generate coverage
|
# node-version: "24"
|
||||||
run: npm run coverage
|
# - name: Checkout code
|
||||||
# continue-on-error: true
|
# uses: actions/checkout@v4
|
||||||
env:
|
# with:
|
||||||
CI: true
|
# fetch-depth: 0
|
||||||
- name: Build site
|
# - name: Install dependencies
|
||||||
env:
|
# run: npm ci
|
||||||
NODE_ENV: production
|
# - name: Run tests and generate coverage
|
||||||
NITRO_PRESET: node_cluster
|
# run: npm run coverage
|
||||||
run: npm run build
|
# # continue-on-error: true
|
||||||
- name: Upload build artifacts
|
# env:
|
||||||
uses: actions/upload-artifact@v3
|
# CI: true
|
||||||
with:
|
# - name: Build site
|
||||||
name: output
|
# env:
|
||||||
path: .output/
|
# NODE_ENV: production
|
||||||
overwrite: true
|
# NITRO_PRESET: node_cluster
|
||||||
include-hidden-files: true
|
# 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
|
#- name: SonarQube Scan
|
||||||
# uses: SonarSource/sonarqube-scan-action@v6
|
# uses: SonarSource/sonarqube-scan-action@v6
|
||||||
# env:
|
# env:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue