Skip to content

Commit

Permalink
Add stylelint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rcowsill authored May 16, 2024
1 parent 844b6b4 commit 735d052
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/stylelint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: CI stylelint
on:
pull_request:
paths:
- ".github/workflows/stylelint.yml"
- ".stylelintrc.json"
- "package.json"
- "package-lock.json"
- "_site/css/**.css"
push:
paths:
- ".github/workflows/stylelint.yml"
- ".stylelintrc.json"
- "package.json"
- "package-lock.json"
- "_site/css/**.css"

permissions:
contents: read

jobs:
stylelint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
sparse-checkout: "_site/css"
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- run: npm ci && npm run stylelint >/dev/null

0 comments on commit 735d052

Please sign in to comment.