Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b445d9044a | |||
| 81c93bafc1 |
+3
-12
@@ -11,18 +11,13 @@ jobs:
|
|||||||
container:
|
container:
|
||||||
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:
|
||||||
|
NODE_PATH: /workspace/node_modules
|
||||||
|
|
||||||
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 to pre-installed node_modules in container
|
|
||||||
# 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
|
- name: Run unit tests
|
||||||
run: npm run test:run
|
run: npm run test:run
|
||||||
|
|
||||||
@@ -36,16 +31,12 @@ 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: /workspace/node_modules
|
||||||
|
|
||||||
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 to pre-installed node_modules in container
|
|
||||||
ln -sf /workspace/node_modules ./node_modules
|
|
||||||
|
|
||||||
- name: Setup SQLite database
|
- name: Setup SQLite database
|
||||||
run: |
|
run: |
|
||||||
# Create SQLite database file
|
# Create SQLite database file
|
||||||
|
|||||||
@@ -13,15 +13,12 @@ jobs:
|
|||||||
options: --user root
|
options: --user root
|
||||||
# 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:
|
||||||
|
NODE_PATH: /workspace/node_modules
|
||||||
|
|
||||||
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 to pre-installed node_modules in container
|
|
||||||
ln -sf /workspace/node_modules ./node_modules
|
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: npm run test:run
|
run: npm run test:run
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ RUN apk add --no-cache \
|
|||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /workspace
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy package files first (for better caching)
|
# Copy package files first (for better caching)
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|||||||
Reference in New Issue
Block a user