ci-image-improvements #18
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-1
@@ -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 ./
|
||||
|
||||
Reference in New Issue
Block a user