chore(gh-actions): add style-lint on CI
This commit is contained in:
parent
b6a1a4172e
commit
1c330f403c
2 changed files with 26 additions and 0 deletions
22
.github/workflows/style-lint.yml
vendored
Normal file
22
.github/workflows/style-lint.yml
vendored
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
name: 'Style Lint'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- '_sass/**.scss'
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
- '_sass/**.scss'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stylelint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
- run: npm i
|
||||||
|
- run: npm test
|
|
@ -12,6 +12,10 @@
|
||||||
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
|
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme",
|
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme",
|
||||||
|
"scripts": {
|
||||||
|
"test": "npx stylelint _sass/**/*.scss",
|
||||||
|
"fixlint": "npx stylelint _sass/**/*.scss --fix"
|
||||||
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "^4.0.2",
|
"gulp": "^4.0.2",
|
||||||
"gulp-concat": "^2.6.1",
|
"gulp-concat": "^2.6.1",
|
||||||
|
|
Loading…
Reference in a new issue