fix: build shared packages and use the mapped CI database port
This commit is contained in:
1 parent
62db511c7b
commit
b4e9651529
2 files changed
+4
-3
No files matched your search
@@ -37,7 +37,7 @@ jobs:
|
||||
POSTGRES_PASSWORD: postgres
|
||||
POSTGRES_DB: collabtable_test
|
||||
ports:
|
||||
- 5432:5432
|
||||
- 5432/tcp
|
||||
options: >-
|
||||
--health-cmd "pg_isready -U postgres"
|
||||
--health-interval 5s
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
- name: Test
|
||||
run: go test ./...
|
||||
env:
|
||||
TEST_DATABASE_URL: postgres://postgres:postgres@localhost:5432/collabtable_test?sslmode=disable
|
||||
TEST_DATABASE_URL: "postgres://postgres:postgres@localhost:${{ job.services.postgres.ports['5432'] }}/collabtable_test?sslmode=disable"
|
||||
|
||||
frontend:
|
||||
name: Dashboard checks
|
||||
|
||||
+2
-1
@@ -8,7 +8,7 @@ COPY shared/package.json shared/package-lock.json /shared/
|
||||
COPY shared/packages/design-tokens/package.json /shared/packages/design-tokens/
|
||||
COPY shared/packages/node-backend/package.json /shared/packages/node-backend/
|
||||
COPY shared/packages/web-ui/package.json /shared/packages/web-ui/
|
||||
RUN npm ci --prefix /shared --ignore-scripts --no-audit --no-fund --omit=dev
|
||||
RUN npm ci --prefix /shared --ignore-scripts --no-audit --no-fund
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
for attempt in 1 2 3 4 5; do \
|
||||
npm ci && break; \
|
||||
@@ -20,6 +20,7 @@ RUN --mount=type=cache,target=/root/.npm \
|
||||
COPY shared/packages/design-tokens /shared/packages/design-tokens
|
||||
COPY shared/packages/node-backend /shared/packages/node-backend
|
||||
COPY shared/packages/web-ui /shared/packages/web-ui
|
||||
RUN npm run build --prefix /shared
|
||||
COPY frontend/ ./
|
||||
RUN rm -rf /frontend/node_modules/@gabriel20xx/web-ui && \
|
||||
ln -s /shared/packages/web-ui /frontend/node_modules/@gabriel20xx/web-ui
|
||||
|
||||
Reference in new issue
Block a user