Skip to content

Commit

Permalink
Merge pull request #1 from rcowsill/feat/lint-workflow
Browse files Browse the repository at this point in the history
Add lint workflow
  • Loading branch information
rcowsill authored Apr 9, 2024
2 parents 3bfe771 + ff86dfb commit a952e6e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: CI eslint
on:
pull_request:
paths:
- ".github/workflows/eslint.yml"
- ".eslintrc.json"
- "package.json"
- "package-lock.json"
- "_site/**.js"
push:
paths:
- ".github/workflows/eslint.yml"
- ".eslintrc.json"
- "package.json"
- "package-lock.json"
- "_site/**.js"

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

0 comments on commit a952e6e

Please sign in to comment.