Merge changes into stable #288
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: Lint CI | |
on: | |
push: | |
branches: | |
- master | |
- staging | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
run-linters: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./frontend | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
- name: Set up Node.js 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Set yarn version | |
run: yarn set version 1.22.17 | |
- name: Install Node.js dependencies | |
run: yarn install --frozen-lockfile | |
- name: ESLint | |
run: yarn lint:eslint | |
- name: Prettier | |
run: yarn lint:eslint | |
- name: TSC | |
run: yarn lint:typescript | |
- name: SonarCloud Scan | |
uses: SonarSource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
with: | |
projectBaseDir: frontend |