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 ./