diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index bd0ecda177..5bfd65e095 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -17,8 +17,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 - run: corepack enable && yarn --version @@ -32,7 +32,7 @@ jobs: - name: Change Report Path run: sed -i 's+/home/runner/work/ccd-case-ui-toolkit/ccd-case-ui-toolkit+/github/workspace+g' coverage/ccd-case-ui-toolkit/lcov.info - name: Archive code coverage results - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: code-coverage-report path: coverage @@ -43,23 +43,23 @@ jobs: runs-on: ubuntu-latest steps: - name: Clone Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # Disabling shallow clone is recommended for improving relevancy of reporting fetch-depth: 0 - name: Download code coverage results - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: code-coverage-report path: coverage - name: Analyze with SonarCloud - uses: sonarsource/sonarcloud-github-action@master + uses: sonarsource/sonarcloud-github-action@v4.0.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - name: Send slack if: failure() - uses: sonots/slack-notice-action@v3 + uses: sonots/slack-notice-action@v3.2.0 with: status: ${{ job.status }} env: @@ -71,8 +71,8 @@ jobs: needs: sonarcloud runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: https://registry.npmjs.org/ @@ -89,8 +89,8 @@ jobs: needs: sonarcloud runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 18 registry-url: https://npm.pkg.github.com/ diff --git a/package.json b/package.json index 0c2b30ac89..9057ac1ff2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ccd-case-ui-toolkit", - "version": "7.1.25", + "version": "7.1.31-sonarCloud-gitub-config-update", "engines": { "node": ">=18.19.0" }, diff --git a/projects/ccd-case-ui-toolkit/package.json b/projects/ccd-case-ui-toolkit/package.json index 7b16a69cee..6d0ecda0c4 100644 --- a/projects/ccd-case-ui-toolkit/package.json +++ b/projects/ccd-case-ui-toolkit/package.json @@ -1,6 +1,6 @@ { "name": "@hmcts/ccd-case-ui-toolkit", - "version": "7.1.25", + "version": "7.1.31-sonarCloud-gitub-config-update", "engines": { "node": ">=18.19.0" }, diff --git a/sonar-project.properties b/sonar-project.properties index 2fd4084099..ec8374f45a 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -7,5 +7,9 @@ sonar.sources=projects/ccd-case-ui-toolkit/src sonar.test.inclusions=projects/ccd-case-ui-toolkit/src/**/*.spec.ts sonar.exclusions=projects/ccd-case-ui-toolkit/src/*.spec.ts, projects/ccd-case-ui-toolkit/src/**/*.module.ts, projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/datetime-picker/datetime-picker-component.spec.ts, projects/ccd-case-ui-toolkit/src/lib/shared/test/mock-rpx-translate.pipe.ts, projects/ccd-case-ui-toolkit/src/test.ts, projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/case-flag/write-case-flag-field.component.ts, projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/datetime-picker/datetime-picker-component.ts, projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/complex/read-complex-field.component.ts, projects/ccd-case-ui-toolkit/src/lib/shared/commons/address-validation-constants.ts, projects/ccd-case-ui-toolkit/src/lib/shared/components/palette/markdown/markdown.component.ts -sonar.javascript.lcov.reportPaths=/github/workspace/coverage/ccd-case-ui-toolkit/lcov-report/lcov.info +sonar.javascript.lcov.reportPaths=./coverage/ccd-case-ui-toolkit/lcov-report/lcov.info +sonar.host.url=https://sonarcloud.io sonar.sourceEncoding=UTF-8 + + +