Skip to content

Commit f054d83

Browse files
authored
Merge pull request #94 from PysioHub/main
feat: add Analyze Code
2 parents 575308a + 8eb868e commit f054d83

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/analyze.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Analyze
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
9+
jobs:
10+
build:
11+
name: Analyze
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
18+
19+
- name: Setup Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20
23+
24+
- name: Install Packages
25+
run: |
26+
corepack enable
27+
npm ci
28+
29+
- name: Build Docs
30+
env:
31+
NODE_OPTIONS: --max_old_space_size=8192
32+
run: |-
33+
npm run docs:build
34+
35+
- uses: sonarsource/sonarqube-scan-action@v3
36+
env:
37+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
38+
SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}

sonar-project.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sonar.projectKey=pysio2007_Vue-blog_4ce9d341-7a3c-4327-8552-71bbe67bb1ca

0 commit comments

Comments
 (0)