更新 .gitea/workflows/multiple.yml
Some checks failed
Gitea Actions Demo / Gitea-Actions (push) Successful in 14s
Gitea Actions Demo / setup (push) Failing after 12s
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:12:15 +08:00
parent 8e61a587f3
commit e474c5c287

View File

@ -22,7 +22,8 @@ jobs:
node-version: 16 node-version: 16
cache: 'yarn' cache: 'yarn'
- uses: actions/cache@v3 - name: Cache node modules
uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -30,8 +31,6 @@ jobs:
- name: Dependent installation - name: Dependent installation
run: yarn install run: yarn install
test: test:
needs: setup needs: setup
steps: steps:
@ -40,7 +39,8 @@ jobs:
with: with:
fetch-depth: 1 fetch-depth: 1
- uses: actions/cache@v3 - name: Cache node modules
uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
@ -51,8 +51,13 @@ jobs:
build: build:
needs: setup needs: setup
steps: steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 1
- uses: actions/cache@v3 - name: Cache node modules
uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}