chore(deps): update dependency typescript to ^5.4.3 #3546
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: | |
env: | |
SONARSCANNER: "true" | |
jobs: | |
build: | |
name: SonarCloud Scan | |
runs-on: ubuntu-latest | |
if: | | |
github.event_name == 'workflow_dispatch' || | |
github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name && github.event.sender.login != 'dependabot[bot]' || | |
github.event_name == 'push' && !contains(github.event.head_commit.message, '[ci skip]') | |
steps: | |
- name: Check out the source code | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Set up Node.js environment | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: lts/* | |
registry-url: https://npm.pkg.github.com | |
- name: Install dependencies | |
run: npm ci --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run postinstall scripts | |
run: npm rebuild && npm run prepare --if-present | |
- name: Run tests | |
run: npm run test:coverage | |
- name: Retrieve information from package.json | |
uses: myrotvorets/info-from-package-json-action@6a4b12839126aa2b858a12d89577fb7c5011e8f9 # 2.0.0 | |
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@49e6cd3b187936a73b8280d59ffd9da69df63ec9 # v2.1.1 | |
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 }} | |
- name: Install codecov | |
run: npm i -g codecov | |
- name: Rebuild the project with sourcemaps | |
run: npm run build -- --sourcemap | |
- name: Run codecov | |
run: codecov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |