forked from mattphillips/deep-object-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
sonar link #284
This file contains hidden or 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: Check
on:
push:
branches:
- main
- hotfix
- dev
jobs:
build:
name: Check
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@main
- uses: actions/setup-node@master
with:
node-version: '18.x'
- name: Install
run: yarn install
- name: Depcheck
run: yarn depcheck
- name: Lint
run: yarn prettier
- name: Test
run: yarn test
- name: Build
run: yarn build
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}