Skip to content

fix: sonarcloud fix

fix: sonarcloud fix #3

Workflow file for this run

name: Build & Test
on:
push:
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: install
uses: borales/actions-yarn@v4
with:
cmd: install --frozen-lockfile
- run: yarn build
- name: SonarCloud Scan
if: env.SONAR_TOKEN != null
uses: SonarSource/sonarcloud-github-action@v2
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}