ci: fix cypress cache binary

This commit is contained in:
YunYouJun 2023-12-17 15:57:27 +08:00
parent 14b2be1e4a
commit eda4fbc80b
5 changed files with 389 additions and 325 deletions

View File

@ -108,11 +108,27 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
# Ref: https://github.com/cypress-io/cypress-example-kitchensink/blob/master/.github/workflows/parallel.yml
# we use the exact restore key to avoid Cypress binary snowballing
# https://glebbahmutov.com/blog/do-not-let-cypress-cache-snowball/
- name: Cache Cypress binary
uses: actions/cache@v3
with:
path: |
~/.cache
key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
path: ~/.cache/Cypress
key: cypress-${{ runner.os }}-cypress-${{ github.ref }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
cypress-${{ runner.os }}-cypress-${{ github.ref }}-${{ hashFiles('**/pnpm-lock.yaml') }}
- name: Cache local node_modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-node-modules-${{ github.ref }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-modules-
- uses: pnpm/action-setup@v2

View File

@ -22,8 +22,8 @@
"devDependencies": {
"@iconify-json/simple-icons": "^1.1.84",
"nodemon": "^3.0.2",
"vite": "^5.0.8",
"vitepress": "1.0.0-rc.31",
"vue": "^3.3.11"
"vite": "^5.0.10",
"vitepress": "1.0.0-rc.32",
"vue": "^3.3.12"
}
}

View File

@ -3,7 +3,7 @@
"type": "module",
"version": "0.15.14",
"private": true,
"packageManager": "pnpm@8.12.0",
"packageManager": "pnpm@8.12.1",
"description": "📄 Vite & Vue powered static blog generator.",
"author": {
"email": "me@yunyoujun.cn",
@ -51,7 +51,7 @@
"prepare": "husky install"
},
"devDependencies": {
"@antfu/eslint-config": "2.4.5",
"@antfu/eslint-config": "2.4.6",
"@iconify-json/logos": "^1.1.41",
"@iconify-json/vscode-icons": "^1.1.32",
"@microsoft/api-extractor": "^7.38.5",
@ -65,7 +65,7 @@
"@types/semver": "^7.5.6",
"cross-env": "^7.0.3",
"cypress": "^13.6.1",
"eslint": "^8.55.0",
"eslint": "^8.56.0",
"eslint-plugin-cypress": "^2.15.1",
"https-localhost": "^4.7.1",
"husky": "^8.0.3",

View File

@ -62,7 +62,7 @@
"@ctrl/tinycolor": "^4.0.2",
"@iconify-json/carbon": "^1.1.26",
"@iconify-json/ri": "^1.1.17",
"@intlify/unplugin-vue-i18n": "^1.5.0",
"@intlify/unplugin-vue-i18n": "^1.6.0",
"@types/body-scroll-lock": "^3.1.2",
"@unhead/addons": "^1.8.9",
"@unhead/schema-org": "^1.8.9",
@ -105,18 +105,18 @@
"pinia": "^2.1.7",
"qrcode": "^1.5.3",
"sass": "^1.69.5",
"shiki": "^0.14.6",
"shiki": "^0.14.7",
"star-markdown-css": "^0.4.2",
"unconfig": "^0.3.11",
"unocss": "^0.58.0",
"unplugin-vue-components": "^0.26.0",
"vanilla-lazyload": "^17.8.5",
"vite": "^5.0.8",
"vite": "^5.0.10",
"vite-plugin-pages": "^0.32.0",
"vite-plugin-vue-layouts": "^0.9.1",
"vite-plugin-vue-layouts": "^0.10.0",
"vite-ssg": "0.23.5",
"vite-ssg-sitemap": "0.6.1",
"vue": "^3.3.11",
"vue": "^3.3.12",
"vue-i18n": "^9.8.0",
"vue-router": "^4.2.5",
"yargs": "^17.7.2"

File diff suppressed because it is too large Load Diff