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