更新 .gitea/workflows/multiple.yml
Some checks failed
Gitea Actions Demo / setup (push) Successful in 1s
Gitea Actions Demo / test (push) Failing after 4s
Gitea Actions Demo / build (push) Failing after 3s
Gitea Actions Demo / Gitea-Actions (push) Successful in 21s

This commit is contained in:
huanghs 2023-08-01 21:27:53 +08:00
parent 67b82c8f2b
commit 4cd6dc6e87

View File

@ -22,15 +22,18 @@ jobs:
node-version: 16
cache: 'yarn'
- run: |
echo ${{ runner.os }}
echo ${{ hashFiles('yarn.lock') }}
- name: Hash files
id: get-hash
uses: https://gitea.com/actions/go-hashfiles
patterns: '**/yarn.lock'
- run: echo ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Cache node modules
uses: actions/cache@v3
with:
path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation
run: yarn install