Skip to content

Commit

Permalink
Cache stylelint checks during workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
colinrotherham committed Sep 20, 2022
1 parent 878cb7e commit aaf997b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
key: task-cache
path: |
.cache/jest
.cache/stylelint
- name: Setup Node.js
uses: actions/setup-node@v3
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:build:dist": "npx jest --selectProjects \"Gulp tasks\" --testMatch \"**/*build-dist*\"",
"lint": "npm run lint:js && npm run lint:scss",
"lint:js": "eslint --cache --cache-location .cache/eslint --cache-strategy content --color --ignore-path .gitignore \"**/*.{cjs,js,mjs}\"",
"lint:scss": "stylelint \"app/**/*.scss\" \"src/**/*.scss\""
"lint:scss": "stylelint --cache --cache-location .cache/stylelint --color --ignore-path .gitignore \"app/**/*.scss\" \"src/**/*.scss\""
},
"devDependencies": {
"@percy/cli": "^1.10.2",
Expand Down

0 comments on commit aaf997b

Please sign in to comment.