Skip to content

Commit

Permalink
ci: make Cypress cache depend on package. Make eslint cache restore l…
Browse files Browse the repository at this point in the history
…ast version if no exact match.

EX-7721
  • Loading branch information
javieri-empathy authored Jan 2, 2023
1 parent 0a14f28 commit 2498972
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,17 @@ jobs:
id: cache-node-modules
uses: actions/cache@v3
with:
path: '**/node_modules'
path: |
**/node_modules
~/.cache/Cypress
key: node-modules-${{ hashFiles('**/package-lock.json') }}
- name: Cache Cypress
id: cache-cypress
uses: actions/cache@v3
with:
path: ~/.cache/Cypress
key: cypress-cache
- name: Cache eslint
id: cache-eslint
uses: actions/cache@v3
with:
path: .eslintcache
key: eslint-${{github.sha}}
restore-keys: eslint-
- name: Install lerna and all packages
if: steps.cache-node-modules.outputs.cache-hit != 'true'
run: npm ci
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react-wrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/jest": "~27.0.3",
"@types/react": "~16.9.0",
"@types/react-dom": "~16.9.0",
"cypress": "~12.1.0",
"cypress": "~12.2.0",
"eslint-plugin-react": "~7.31.11",
"jest": "~27.3.1",
"react": "^16.9.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"@vue/test-utils": "~1.0.3",
"@vue/vue2-jest": "~27.0.0-alpha.3",
"autoprefixer": "~10.4.4",
"cypress": "~12.1.0",
"cypress": "~12.2.0",
"esbuild": "0.15.16",
"glob": "~7.1.6",
"jest": "~27.3.1",
Expand Down

0 comments on commit 2498972

Please sign in to comment.