@diplodoc/lint 1.13.0 → 1.13.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diplodoc/lint",
3
- "version": "1.13.0",
3
+ "version": "1.13.2",
4
4
  "description": "Diplodoc platform internal utility set for linting",
5
5
  "bin": {
6
6
  "lint": "./bin/lint.js",
@@ -61,3 +61,10 @@ jobs:
61
61
  name: coverage
62
62
  path: coverage/
63
63
  retention-days: 7
64
+
65
+ - name: SonarCloud Scan
66
+ if: success() && steps.coverage-run.outputs.ran == 'true'
67
+ uses: SonarSource/sonarqube-scan-action@v7.0.0
68
+ env:
69
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
@@ -3,7 +3,7 @@
3
3
  # To modify this workflow, edit it in diplodoc/devops/lint/scaffolding/.github/workflows/
4
4
  # and then run the scaffolding update process.
5
5
 
6
- name: Release Package to npm
6
+ name: Release to npm
7
7
 
8
8
  # This workflow handles both stable and prerelease publishing to npm
9
9
  # - Stable: triggered by release event or manual dispatch with 'stable' type
@@ -3,7 +3,7 @@
3
3
  # To modify this workflow, edit it in diplodoc/devops/lint/scaffolding/.github/workflows/
4
4
  # and then run the scaffolding update process.
5
5
 
6
- name: Tests
6
+ name: Quality
7
7
 
8
8
  on:
9
9
  push:
@@ -5,8 +5,8 @@
5
5
  # Note: sonar.organization can also be set via environment variable SONAR_ORGANIZATION
6
6
  # or via GitHub Actions workflow. If not set here, it must be provided in the workflow.
7
7
  sonar.organization=diplodoc-platform
8
- sonar.projectKey=diplodoc-platform_{{package}}
9
- sonar.projectName={{package}}
8
+ sonar.projectKey=diplodoc-platform_{{PACKAGE_NAME}}
9
+ sonar.projectName={{PACKAGE_NAME}}
10
10
 
11
11
  # Source code location
12
12
  sonar.sources=src
@@ -1,45 +0,0 @@
1
- name: SonarCloud Analysis
2
-
3
- on:
4
- push:
5
- branches: [master, main]
6
- pull_request:
7
- branches: [master, main]
8
- types: [opened, synchronize, reopened]
9
-
10
- jobs:
11
- sonarcloud:
12
- name: SonarCloud Analysis
13
- runs-on: ubuntu-latest
14
- steps:
15
- - name: Checkout code
16
- uses: actions/checkout@v4
17
- with:
18
- fetch-depth: 0 # Shallow clones should be disabled for better analysis
19
-
20
- - name: Setup Node.js
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 22.x
24
- cache: 'npm'
25
-
26
- - name: Install dependencies
27
- run: npm ci
28
-
29
- - name: Run tests with coverage
30
- id: coverage-run
31
- run: |
32
- if node -e "const s=require('./package.json').scripts; process.exit(s && s['test:coverage'] ? 0 : 1)"; then
33
- npm run test:coverage
34
- echo "ran=true" >> "$GITHUB_OUTPUT"
35
- else
36
- echo "test:coverage script not found, skipping."
37
- echo "ran=false" >> "$GITHUB_OUTPUT"
38
- fi
39
-
40
- - name: SonarCloud Scan
41
- if: success() && steps.coverage-run.outputs.ran == 'true'
42
- uses: SonarSource/sonarqube-scan-action@v7.0.0
43
- env:
44
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45
- SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}