fix: use NODE_PATH env var instead of symlinks
This commit is contained in:
@@ -13,15 +13,12 @@ jobs:
|
||||
options: --user root
|
||||
# Skip if this is an auto-generated version bump commit (handled by release workflow)
|
||||
if: "!contains(github.event.head_commit.message, 'chore: bump version')"
|
||||
env:
|
||||
NODE_PATH: /workspace/node_modules
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Link node_modules from container
|
||||
run: |
|
||||
# Create symlink to pre-installed node_modules in container
|
||||
ln -sf /workspace/node_modules ./node_modules
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:run
|
||||
|
||||
Reference in New Issue
Block a user