fix
This commit is contained in:
parent
82198e8c5b
commit
8672113ba3
26
.gitea/actions/yarn-install/action.yml
Normal file
26
.gitea/actions/yarn-install/action.yml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: 'Yarn install'
|
||||||
|
description: 'Run yarn install with cache enabled'
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: 'composite'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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
|
@ -16,24 +16,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- run: corepack enable
|
- name: Yarn install
|
||||||
|
uses: ./.gitea/actions/yarn-install
|
||||||
- name: Hash files
|
|
||||||
id: get-hash
|
|
||||||
uses: https://gitea.com/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:
|
test:
|
||||||
needs: setup
|
needs: setup
|
||||||
@ -48,24 +32,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- run: corepack enable
|
- name: Yarn install
|
||||||
|
uses: ./.gitea/actions/yarn-install
|
||||||
|
|
||||||
- name: Hash files
|
- name: Eslint Test
|
||||||
id: get-hash
|
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
|
||||||
uses: https://gitea.com/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
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: setup
|
needs: setup
|
||||||
@ -80,21 +51,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
|
|
||||||
- run: corepack enable
|
- name: Yarn install
|
||||||
|
uses: ./.gitea/actions/yarn-install
|
||||||
|
|
||||||
- name: Hash files
|
- name: Eslint Test
|
||||||
id: get-hash
|
run: npx eslint --ext ".vue,.js,.jsx,.ts,.tsx"
|
||||||
uses: https://gitea.com/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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user