更新 .gitea/workflows/multiple.yml
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Successful in 17s
Gitea Actions Demo / setup (push) Failing after 1m6s
Gitea Actions Demo / test (push) Has been skipped
Gitea Actions Demo / build (push) Has been skipped

This commit is contained in:
huanghs 2023-08-01 21:11:02 +08:00
parent ac46a309d6
commit 8e61a587f3

View File

@ -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