Skip to content

Commit

Permalink
chore(gh-actions): add style-lint on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
cotes2020 committed Oct 21, 2022
1 parent b6a1a41 commit 1c330f4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/style-lint.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
"url": "https://github.com/cotes2020/jekyll-theme-chirpy/issues"
},
"homepage": "https://github.com/cotes2020/jekyll-theme-chirpy#readme",
"scripts": {
"test": "npx stylelint _sass/**/*.scss",
"fixlint": "npx stylelint _sass/**/*.scss --fix"
},
"devDependencies": {
"gulp": "^4.0.2",
"gulp-concat": "^2.6.1",
Expand Down

0 comments on commit 1c330f4

Please sign in to comment.