mirror of
https://github.com/dream-num/univer.git
synced 2026-09-01 15:29:43 +08:00
ci: add sonar cloud (#1197)
* ci: add sonar cloud * ci: add tokens * ci: setup sonar * fix: fix project key * fix: try fixing syntac * fix: fix CI
This commit is contained in:
@@ -12,7 +12,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
name: Validate PR title
|
||||
name: validate PR title
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: amannn/action-semantic-pull-request@v5
|
||||
|
||||
@@ -74,7 +74,7 @@ jobs:
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 18
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
@@ -115,7 +115,7 @@ jobs:
|
||||
- name: Install Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 18
|
||||
|
||||
- name: Install pnpm
|
||||
uses: pnpm/action-setup@v2
|
||||
@@ -141,3 +141,19 @@ jobs:
|
||||
|
||||
- name: 🎨 Run Stylelint
|
||||
run: pnpm run lint:style
|
||||
|
||||
sonar:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
# Disabling shallow clone is recommended for improving relevancy of reporting
|
||||
fetch-depth: 0
|
||||
|
||||
- name: SonarCloud Scan
|
||||
uses: SonarSource/sonarcloud-github-action@v2.1.1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
sonar.organization=dream-num
|
||||
sonar.projectKey=dream-num_univer
|
||||
sonar.sources=.
|
||||
Reference in New Issue
Block a user