Skip to content

Commit fec9cdf

Browse files
Enhance E2E test workflow by cleaning npm cache and adjusting installation steps
1 parent 25a52ff commit fec9cdf

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/e2e-tests.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,16 @@ jobs:
2020
node-version: '18'
2121
cache: 'npm'
2222

23-
- name: Install dependencies
24-
run: npm ci
23+
- name: Clean and install dependencies
24+
run: |
25+
# Clean npm cache and remove lock file to fix Rollup issue
26+
npm cache clean --force
27+
rm -f package-lock.json
28+
rm -rf node_modules
29+
# Fresh install
30+
npm install
31+
# Verify installation
32+
npm ls @rollup/rollup-linux-x64-gnu || echo "Rollup native dependency not found, continuing..."
2533
2634
- name: Install Supabase CLI
2735
run: |
@@ -61,9 +69,9 @@ jobs:
6169
# Start Angular with local configuration
6270
npm run start:local &
6371
# Wait for app to start
64-
sleep 30
65-
# Wait for app to be ready
66-
timeout 60 bash -c 'until curl -f http://localhost:4200; do sleep 2; done'
72+
sleep 45
73+
# Wait for app to be ready with longer timeout
74+
timeout 120 bash -c 'until curl -f http://localhost:4200; do sleep 3; done'
6775
env:
6876
# Set environment variables for local Supabase
6977
SUPABASE_URL: http://127.0.0.1:54321

0 commit comments

Comments
 (0)