Update .gitea/workflows/build.yml
This commit is contained in:
@@ -37,7 +37,7 @@ jobs:
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
|
||||
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
|
||||
- name: Install Dependencies
|
||||
run: npm ci
|
||||
- name: Run Tests
|
||||
@@ -63,11 +63,21 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
needs: Build
|
||||
steps:
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '1.20'
|
||||
- uses: actions/go-hashfiles@v0.0.1
|
||||
id: get-cache-hash
|
||||
with:
|
||||
patterns: |-
|
||||
**/package-lock.json
|
||||
- name: Show key future key value
|
||||
run: echo "deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}"
|
||||
- name: Setup Chache
|
||||
uses: actions/cache@v3
|
||||
uses: https://github.com/actions/cache@v3
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: deps-node-modules-${{ hashFiles('**/package-lock.json') }}
|
||||
key: deps-node-modules-${{ steps.get-cache-hash.outputs.hash }}
|
||||
- name: Access Artifacts
|
||||
uses: https://github.com/actions/download-artifact@v3
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user