Skip to content

Commit

Permalink
add eslintcache to lint-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
huuyafwww committed Nov 26, 2024
1 parent 1d5850b commit dfd12cd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,19 @@ jobs:
- name: Build packages
run: pnpm run build

- name: Setup Turborepo cache
uses: actions/cache@v4
with:
path: |
packages/eslint-config-browser/.eslintcache
packages/eslint-config-common/.eslintcache
packages/eslint-config-next/.eslintcache
packages/eslint-config-node/.eslintcache
packages/eslint-config-react/.eslintcache
packages/eslint-config-storybook/.eslintcache
key: ${{ runner.os }}-eslint-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-eslint-cache-
- name: Lint Code
run: pnpm run lint:code
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ yarn-error.log*

# Output
dist
.eslintcache

0 comments on commit dfd12cd

Please sign in to comment.