更新 .gitea/workflows/multiple.yml
This commit is contained in:
parent
ac46a309d6
commit
8e61a587f3
@ -22,29 +22,40 @@ jobs:
|
||||
node-version: 16
|
||||
cache: 'yarn'
|
||||
|
||||
- uses: actions/cache@v3
|
||||
with:
|
||||
path: node_modules
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
|
||||
- name: Dependent installation
|
||||
run: yarn install
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
path: ${{ github.workspace }}
|
||||
|
||||
|
||||
test:
|
||||
needs: setup
|
||||
steps:
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
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:
|
||||
needs: setup
|
||||
steps:
|
||||
|
||||
- uses: actions/download-artifact@v3
|
||||
- uses: actions/cache@v3
|
||||
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