fix
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Failing after 41s
Gitea Actions Demo / setup (push) Successful in 1m17s
Gitea Actions Demo / test (push) Successful in 1m37s
Gitea Actions Demo / build (push) Successful in 1m35s

This commit is contained in:
seepine 2023-08-02 11:29:02 +08:00
parent d0a25e5082
commit 45b79478ff
3 changed files with 61 additions and 8 deletions

View File

@ -16,8 +16,25 @@ jobs:
with:
fetch-depth: 1
- name: Yarn install
uses: ./.gitea/actions/yarn-install
- name: Corepack enable
run: corepack enable
- name: Hash files
id: get-hash
uses: seepine/hash-files@v1
with:
patterns: |
**/package.json
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
test:
needs: setup
@ -32,8 +49,26 @@ jobs:
with:
fetch-depth: 1
- name: Yarn install
uses: ./.gitea/actions/yarn-install
- name: Corepack enable
run: corepack enable
- name: Hash files
id: get-hash
uses: seepine/hash-files@v1
with:
patterns: |
**/package.json
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
- name: Eslint Test
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
@ -51,8 +86,26 @@ jobs:
with:
fetch-depth: 1
- name: Yarn install
uses: ./.gitea/actions/yarn-install
- name: Corepack enable
run: corepack enable
- name: Hash files
id: get-hash
uses: seepine/hash-files@v1
with:
patterns: |
**/package.json
**/yarn.lock
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install
- name: Eslint Test
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"

View File

@ -59,7 +59,7 @@
"miniprogram-ci": "^1.9.8",
"prettier": "~2.6.0",
"sass": "^1.57.1",
"typescript": "^4.9.1",
"typescript": "^4.9.2",
"unplugin-auto-import": "^0.16.6",
"vite": "4.0.4",
"vue-tsc": "^1.0.24"

View File

@ -9590,7 +9590,7 @@ typed-array-length@^1.0.4:
resolved "https://registry.npmmirror.com/typescript/-/typescript-5.1.6.tgz"
integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==
typescript@^4.9.1:
typescript@^4.9.2:
version "4.9.5"
resolved "https://registry.npmmirror.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==