Skip to content

chore(deps): update dependency lint-staged to v13.2.3 #1033

chore(deps): update dependency lint-staged to v13.2.3

chore(deps): update dependency lint-staged to v13.2.3 #1033

Workflow file for this run

name: Sonar
on:
push:
branches:
- "main"
- "beta"
pull_request:
types: [opened, synchronize, reopened]
jobs:
analyze:
name: Analyze
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [16]
steps:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Checkout Repo
uses: actions/checkout@v3
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0
- name: cache node_modules
uses: actions/cache@v3
id: cache
with:
path: |
node_modules
key: ${{ matrix.os }}-node-v${{ matrix.node }}-deps-${{ hashFiles(format('{0}{1}', github.workspace, '/package-lock.json')) }}
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Lint (Report Generate)
run: npm run lint:report
- name: Coverage (Report Generate)
run: npm run test:coverage
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
with:
args: >
-Dsonar.projectVersion=${{ steps.package-version.outputs.current-version}}
-Dsonar.sources=src/
-Dsonar.tests=test/
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}