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