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 a1a1944 commit cde2ccf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
key: npm-cache-${{ hashFiles('package-lock.json') }}
path: node_modules

- name: Cache tasks
uses: actions/cache@v3
with:
key: task-cache
path: |
.cache/stylelint
- name: Setup Node.js
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"test:build:dist": "jest tasks/gulp/__tests__/after-build-dist.test.js",
"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.0.0-beta.75",
Expand Down

0 comments on commit cde2ccf

Please sign in to comment.