Update .github/workflows/sonar.yml
This commit is contained in:
parent
55f177b571
commit
b80eb9634e
1 changed files with 28 additions and 34 deletions
62
.github/workflows/sonar.yml
vendored
62
.github/workflows/sonar.yml
vendored
|
|
@ -15,40 +15,34 @@ jobs:
|
||||||
name: SonarQube
|
name: SonarQube
|
||||||
runs-on: node24
|
runs-on: node24
|
||||||
steps:
|
steps:
|
||||||
- name: Miscellaneous setup
|
- name: Setup Node environment
|
||||||
run: |
|
uses: actions/setup-node@v4
|
||||||
echo "This is a placeholder for SonarQube analysis."
|
with:
|
||||||
uname -a
|
node-version: "24"
|
||||||
id
|
- name: Code checkout
|
||||||
apt update
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
# - name: Setup node environment
|
fetch-depth: 0
|
||||||
# uses: actions/setup-node@v4
|
- name: Install dependencies
|
||||||
# with:
|
run: npm ci
|
||||||
# node-version: "24"
|
- name: Run tests and generate coverage
|
||||||
# - name: Checkout code
|
run: npm run coverage
|
||||||
# uses: actions/checkout@v4
|
# continue-on-error: true
|
||||||
# with:
|
env:
|
||||||
# fetch-depth: 0
|
CI: true
|
||||||
# - name: Install dependencies
|
- name: Build site
|
||||||
# run: npm ci
|
env:
|
||||||
# - name: Run tests and generate coverage
|
NODE_ENV: production
|
||||||
# run: npm run coverage
|
NITRO_PRESET: node_cluster
|
||||||
# # continue-on-error: true
|
NITRO_CLUSTER_WORKERS: 4
|
||||||
# env:
|
run: npm run build
|
||||||
# CI: true
|
- name: Upload build artifacts
|
||||||
# - name: Build site
|
uses: actions/upload-artifact@v3
|
||||||
# env:
|
with:
|
||||||
# NODE_ENV: production
|
name: output
|
||||||
# NITRO_PRESET: node_cluster
|
path: .output/
|
||||||
# run: npm run build
|
overwrite: true
|
||||||
# - name: Upload build artifacts
|
include-hidden-files: true
|
||||||
# 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