Test Workflow - Cache NPM Dependencies
This commit is contained in:
parent
e48362ae6e
commit
a331ab608d
@ -7,7 +7,7 @@ on:
|
|||||||
branches: '*'
|
branches: '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
run-vitest-tests:
|
vitest:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: refringe/spt-build-node:1.0.7
|
image: refringe/spt-build-node:1.0.7
|
||||||
@ -28,9 +28,18 @@ jobs:
|
|||||||
git lfs ls-files
|
git lfs ls-files
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
- name: Cache NPM Dependencies
|
||||||
|
id: cache-npm-dependencies
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: /workspace/SPT-AKI/Build/server/project/node_modules
|
||||||
|
key: npm-dependencies-${{ hashFiles('/workspace/SPT-AKI/Build/server/project/package.json') }}
|
||||||
|
|
||||||
- name: Install NPM Dependencies
|
- name: Install NPM Dependencies
|
||||||
|
if: steps.cache-npm-dependencies.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd /workspace/SPT-AKI/Build/server/project
|
cd /workspace/SPT-AKI/Build/server/project
|
||||||
|
rm -rf node_modules
|
||||||
npm install
|
npm install
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user