chore: configure lint tools #4
Workflow file for this run
This file contains 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: 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 }} |