-
Notifications
You must be signed in to change notification settings - Fork 5
48 lines (38 loc) · 962 Bytes
/
lint.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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