Skip to content

Commit f0f54b0

Browse files
committed
chore(ci): update caching strategy and improve dependency installation
1 parent abd788e commit f0f54b0

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,25 @@ jobs:
3838
repository: koromerzhin/lampy
3939
ref: 'v4.1'
4040
path: lampy
41+
42+
- name: Setup cache
43+
uses: actions/cache@v4
44+
with:
45+
path: node_modules
46+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
47+
restore-keys: ${{ runner.os }}-node-
4148

4249
# === BUILD PHASE ===
4350
- name: Install dependencies
44-
run: npm ci --prefer-offline --no-audit
51+
run: |
52+
if [ ! -d node_modules ]; then
53+
npm install
54+
fi
4555
4656
- name: Setup environment files
4757
run: |
4858
cp .env.example .env
4959
50-
# === INFRASTRUCTURE PHASE ===
51-
- name: Setup Docker cache
52-
uses: actions/cache@v4
53-
with:
54-
path: /tmp/.buildx-cache
55-
key: ${{ runner.os }}-buildx-${{ github.sha }}
56-
restore-keys: |
57-
${{ runner.os }}-buildx-
58-
5960
- name: Setup database and infrastructure
6061
run: |
6162
task laravel:copysql

taskfiles

0 commit comments

Comments
 (0)