From ba180ae6e1f494bf000e3a914de7c4273c12f30c Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Tue, 31 Mar 2026 22:57:10 -0700 Subject: [PATCH] fix: move node_modules to /workspace in CI image and update symlink --- .gitea/workflows/pr.yml | 6 ++++-- .gitea/workflows/test.yml | 2 +- Dockerfile.ci | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/pr.yml b/.gitea/workflows/pr.yml index 3d4dd35..85afec2 100644 --- a/.gitea/workflows/pr.yml +++ b/.gitea/workflows/pr.yml @@ -19,7 +19,9 @@ jobs: - name: Link node_modules from container run: | # Create symlink to pre-installed node_modules in container - ln -sf /app/node_modules ./node_modules + # Container has node_modules at /workspace/node_modules + # Gitea Actions checks out at /workspace/david/euchre_camp + ln -sf /workspace/node_modules ./node_modules - name: Run unit tests run: npm run test:run @@ -42,7 +44,7 @@ jobs: - name: Link node_modules from container run: | # Create symlink to pre-installed node_modules in container - ln -sf /app/node_modules ./node_modules + ln -sf /workspace/node_modules ./node_modules - name: Setup SQLite database run: | diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index b5cf26a..ed4ab16 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - name: Link node_modules from container run: | # Create symlink to pre-installed node_modules in container - ln -sf /app/node_modules ./node_modules + ln -sf /workspace/node_modules ./node_modules - name: Run unit tests run: npm run test:run diff --git a/Dockerfile.ci b/Dockerfile.ci index 36429f2..6e0908e 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -15,7 +15,7 @@ RUN apk add --no-cache \ && rm -rf /var/cache/apk/* # Set working directory -WORKDIR /app +WORKDIR /workspace # Copy package files first (for better caching) COPY package*.json ./