更新 .gitea/workflows/multiple.yml
This commit is contained in:
parent
ac46a309d6
commit
8e61a587f3
@ -22,29 +22,40 @@ jobs:
|
|||||||
node-version: 16
|
node-version: 16
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
|
||||||
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
- name: Dependent installation
|
- name: Dependent installation
|
||||||
run: yarn install
|
run: yarn install
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
path: ${{ github.workspace }}
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
- uses: actions/download-artifact@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}
|
fetch-depth: 1
|
||||||
|
|
||||||
- run: yarn install
|
- uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
|
- name: Dependent installation
|
||||||
|
run: yarn install
|
||||||
|
|
||||||
build:
|
build:
|
||||||
needs: setup
|
needs: setup
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- uses: actions/download-artifact@v3
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ github.workspace }}
|
path: node_modules
|
||||||
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||||
|
|
||||||
- run: yarn install
|
- name: Dependent installation
|
||||||
|
run: yarn install
|
||||||
|
Loading…
x
Reference in New Issue
Block a user