Skip to content

chore: configure lint tools #4

chore: configure lint tools

chore: configure lint tools #4

Workflow file for this run

name: Develop PR
on:
pull_request:
branches:
- develop
types:
- opened
- reopened
- edited
- synchronize
jobs:
lint-and-test:
runs-on: ubuntu-22.04
steps:
- name: 🏃‍ Checkout
uses: actions/checkout@v4
- name: 📌 Set up Node.js
uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: "yarn"
- name: 📌 Install dependencies
run: yarn install
- name: 🕵🏻 Run lint
run: yarn run lint
- name: 🩺 Check code formatting
run: yarn run prettier:check
sonarcloud:
needs: lint-and-test
name: 🚀 Upload to SonarCloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}