Cache installed node modules in Actions

This commit is contained in:
Andreas Nedbal 2023-01-21 06:56:40 +01:00 committed by Andreas Nedbal
parent 18f428eddf
commit 5ae497e4ca
2 changed files with 3 additions and 0 deletions

View File

@ -32,6 +32,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
cache: 'yarn'
- name: Install node modules - name: Install node modules
run: | run: |
npm i -g yarn npm i -g yarn
@ -62,6 +63,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
cache: 'yarn'
- name: Install node modules - name: Install node modules
run: | run: |
npm i -g yarn npm i -g yarn

View File

@ -52,6 +52,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: '14' node-version: '14'
cache: 'yarn'
- name: Copy default configuration - name: Copy default configuration
run: | run: |
cp config/database.yml.postgres config/database.yml cp config/database.yml.postgres config/database.yml