Skip to content

Merge pull request #192 from LedgerHQ/feat/LIVE-13659 #396

Merge pull request #192 from LedgerHQ/feat/LIVE-13659

Merge pull request #192 from LedgerHQ/feat/LIVE-13659 #396

Workflow file for this run

name: "[BOT] Code Quality Analysis & Coverage"
on:
# Trigger analysis when pushing in master or pull requests, and when creating
# a pull request.
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
permissions:
pull-requests: read # allows SonarQube to decorate PRs with analysis results
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
run_install: false
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test:coverage
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}