-
-
Notifications
You must be signed in to change notification settings - Fork 1
26 lines (21 loc) · 721 Bytes
/
css.yml
File metadata and controls
26 lines (21 loc) · 721 Bytes
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
# Uses Lint Action: https://github.com/marketplace/actions/lint-action#supported-tools
name: CSS Lint
on: [pull_request, push]
jobs:
lint-css:
name: Lint CSS with stylelint
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- name: Install stylelint
run: npm install --save-dev stylelint stylelint-config-standard
- name: Run stylelint
uses: samuelmeuli/lint-action@v1
with:
github_token: ${{ secrets.github_token }}
# Enables stylelint on Lint Action
stylelint: true
# Enables auto fix
# (Lint Action will auto commit style fixes)
auto_fix: true