-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.1 KB
/
stylelint.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
name: StyleLint
on:
push:
branches:
- main
pull_request:
# The branches below must be a subset of the branches above
branches:
- main
workflow_dispatch:
jobs:
stylelint:
name: Run stylelint scanning
runs-on: ubuntu-latest
permissions:
contents: read
# required for all workflows
security-events: write
# only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
actions: read
checks: write
pull-requests: read
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Node Dependencies
run: |
npm ci
env:
CI: TRUE
- name: Annotate Code
uses: xt0rted/stylelint-problem-matcher@v1
- name: Run Style Lint
run: npx stylelint "src/**/*.scss"
--config './.stylelintrc.json'
--max-warnings 0
--custom-formatter=stylelint-actions-formatters