fix: symlink from /app/node_modules to workspace
This commit is contained in:
+12
-4
@@ -12,13 +12,17 @@ jobs:
|
|||||||
image: docker.notsosm.art/euchre-camp-ci-runner:latest
|
image: docker.notsosm.art/euchre-camp-ci-runner:latest
|
||||||
options: --user root
|
options: --user root
|
||||||
env:
|
env:
|
||||||
NODE_PATH: /app/node_modules
|
NODE_PATH: /workspace/david/euchre_camp/node_modules
|
||||||
PATH: /app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Link node_modules from container
|
||||||
|
run: |
|
||||||
|
# Create symlink from container's node_modules to workspace
|
||||||
|
ln -sf /app/node_modules /workspace/david/euchre_camp/node_modules
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm run test:run
|
run: npm run test:run
|
||||||
|
|
||||||
@@ -32,13 +36,17 @@ jobs:
|
|||||||
DATABASE_PROVIDER: sqlite
|
DATABASE_PROVIDER: sqlite
|
||||||
DATABASE_URL: file:./prisma/ci.db
|
DATABASE_URL: file:./prisma/ci.db
|
||||||
BETTER_AUTH_SECRET: test-secret-key-for-ci-only
|
BETTER_AUTH_SECRET: test-secret-key-for-ci-only
|
||||||
NODE_PATH: /app/node_modules
|
NODE_PATH: /workspace/david/euchre_camp/node_modules
|
||||||
PATH: /app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Link node_modules from container
|
||||||
|
run: |
|
||||||
|
# Create symlink from container's node_modules to workspace
|
||||||
|
ln -sf /app/node_modules /workspace/david/euchre_camp/node_modules
|
||||||
|
|
||||||
- name: Setup SQLite database
|
- name: Setup SQLite database
|
||||||
run: |
|
run: |
|
||||||
# Create SQLite database file
|
# Create SQLite database file
|
||||||
|
|||||||
@@ -14,12 +14,16 @@ jobs:
|
|||||||
# Skip if this is an auto-generated version bump commit (handled by release workflow)
|
# Skip if this is an auto-generated version bump commit (handled by release workflow)
|
||||||
if: "!contains(github.event.head_commit.message, 'chore: bump version')"
|
if: "!contains(github.event.head_commit.message, 'chore: bump version')"
|
||||||
env:
|
env:
|
||||||
NODE_PATH: /app/node_modules
|
NODE_PATH: /workspace/david/euchre_camp/node_modules
|
||||||
PATH: /app/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Link node_modules from container
|
||||||
|
run: |
|
||||||
|
# Create symlink from container's node_modules to workspace
|
||||||
|
ln -sf /app/node_modules /workspace/david/euchre_camp/node_modules
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm run test:run
|
run: npm run test:run
|
||||||
|
|||||||
Reference in New Issue
Block a user