Skip to content

Commit e9cd66c

Browse files
committed
refactor(ci): improve caching strategy and dependency installation in CI workflow
1 parent 0985986 commit e9cd66c

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -38,24 +38,24 @@ jobs:
3838
repository: koromerzhin/lampy
3939
ref: 'v4.1'
4040
path: lampy
41-
42-
# === BUILD PHASE ===
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-
48+
4349
- name: Install dependencies
44-
run: npm ci --prefer-offline --no-audit
50+
run: |
51+
if [ ! -d node_modules ]; then
52+
npm install
53+
fi
4554
4655
- name: Setup environment files
4756
run: |
4857
cp .env.example .env
4958
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-
5959
- name: Setup database and infrastructure
6060
run: |
6161
task symfony:copysql

taskfiles

0 commit comments

Comments
 (0)