fix: use symlinks to link node_modules from container
This commit is contained in:
+10
-4
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user