Skip to content

Commit

Permalink
Add stylelint to GitHub Actions workflow to lint the CSS (closes #80)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Postmodern <[email protected]>
  • Loading branch information
Programmer80101 and postmodern authored Aug 1, 2024
1 parent 1bc7894 commit d7bfd17
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/stylelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Lint CSS

on: [push, pull_request]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install stylelint
run: npm install -g stylelint stylelint-config-standard

- name: Run stylelint
run: stylelint stylesheets/*.css
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
2 changes: 1 addition & 1 deletion stylesheets/print.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ object.demo {

article.post .post-links {
display: none;
}
}

0 comments on commit d7bfd17

Please sign in to comment.