-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (54 loc) · 1.55 KB
/
linters.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: LINTERS
on:
pull_request:
branches:
- "main"
jobs:
linters:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
architecture: [x64]
steps:
- name: Check out Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Nodejs ${{ matrix.node-version }} - ${{ matrix. architecture }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: CACHE NODE.JS MODULES
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
- name: RUN YARN INSTALL
uses: borales/actions-yarn@v4
with:
cmd: install
- name: RUN COMMITLINT
uses: borales/actions-yarn@v4
with:
cmd: commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose
- name: RUN BRANCHLINT
uses: lekterable/[email protected]
with:
allowed: |
/release\//i
errorMessage: "Branches with the name are not allowed."
- name: RUN PRETTIER CHECK
uses: borales/actions-yarn@v4
with:
cmd: prettier
- name: RUN STYLELINT
uses: borales/actions-yarn@v4
with:
cmd: lint:scss
- name: RUN ESLINT
uses: borales/actions-yarn@v4
with:
cmd: lint