From c611c68822ad994ae093b624a92d9414c972ad2b Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Tue, 31 Mar 2026 22:53:40 -0700 Subject: [PATCH] fix: use symlinks to link node_modules from container --- .gitea/workflows/pr.yml | 14 ++++++++++---- .gitea/workflows/test.yml | 7 +++++-- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 107be03..3d4dd35 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -15,8 +15,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - path: /app + + - name: Link node_modules from container + run: | + # Create symlink to pre-installed node_modules in container + ln -sf /app/node_modules ./node_modules - name: Run unit tests run: npm run test:run @@ -35,8 +38,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - path: /app + + - name: Link node_modules from container + run: | + # Create symlink to pre-installed node_modules in container + ln -sf /app/node_modules ./node_modules - name: Setup SQLite database run: | diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 7f5aebd..b5cf26a 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -17,8 +17,11 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v4 - with: - path: /app + + - name: Link node_modules from container + run: | + # Create symlink to pre-installed node_modules in container + ln -sf /app/node_modules ./node_modules - name: Run unit tests run: npm run test:run