更新 .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 node-version: 16
cache: 'yarn' cache: 'yarn'
- run: | - name: Hash files
echo ${{ runner.os }} id: get-hash
echo ${{ hashFiles('yarn.lock') }} uses: https://gitea.com/actions/go-hashfiles
patterns: '**/yarn.lock'
- run: echo ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Cache node modules - name: Cache node modules
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: node_modules path: node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }} key: ${{ runner.os }}-yarn-${{ steps.get-hash.outputs.hash }}
- name: Dependent installation - name: Dependent installation
run: yarn install run: yarn install