chore(deps): update dependency rollup to v4.29.1 - autoclosed #1643
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: SonarCloud Analysis | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: SonarCloud Scan | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js environment | |
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0 | |
with: | |
node-version: lts/* | |
cache: npm | |
- name: Install dependencies | |
run: npm ci | |
- name: Run tests | |
run: npm test | |
- name: Retrieve information from package.json | |
uses: myrotvorets/info-from-package-json-action@8c0495f8c31c3b5e01e4b5dbb9dddb269089cffb # v2.0.2 | |
id: ver | |
- name: Fix paths in test-report.xml | |
run: sed -i "s@$(pwd)@/github/workspace@g" test-report.xml | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
args: > | |
-Dsonar.projectName=${{ steps.ver.outputs.packageName }} | |
-Dsonar.projectVersion=${{ steps.ver.outputs.packageVersion }} | |
-Dsonar.links.homepage=${{ steps.ver.outputs.packageHomepage }} | |
-Dsonar.links.issue=${{ steps.ver.outputs.packageBugsUrl }} | |
-Dsonar.links.scm=${{ steps.ver.outputs.packageScmUrl }} |