chore(CI): speed up yarn install by skipping install of browsers
This commit is contained in:
+12
-12
@@ -433,7 +433,7 @@ jobs:
|
||||
- ~/.cache/pre-commit
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
||||
@@ -494,7 +494,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -650,7 +650,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -679,7 +679,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -730,7 +730,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -771,7 +771,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -819,7 +819,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -849,7 +849,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -898,7 +898,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
@@ -933,7 +933,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
key: yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
@@ -1218,7 +1218,7 @@ jobs:
|
||||
- yarn-packages-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
||||
@@ -1289,7 +1289,7 @@ jobs:
|
||||
- yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn
|
||||
command: PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
key: yarn-packages-server-{{ checksum "yarn.lock" }}
|
||||
|
||||
@@ -13,5 +13,5 @@ cp -n "${GIT_ROOT}/packages/server/.env-example" "${GIT_ROOT}/packages/server/.e
|
||||
cp -n "${GIT_ROOT}/packages/frontend-2/.env.example" "${GIT_ROOT}/packages/frontend-2/.env" || true
|
||||
|
||||
echo "Installing nodejs dependencies and building shared packages"
|
||||
yarn
|
||||
PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn
|
||||
yarn build:public
|
||||
|
||||
@@ -44,7 +44,7 @@ COPY packages/frontend-2/type-augmentations/stubs packages/frontend-2/type-augme
|
||||
COPY packages/shared/package.json packages/shared/
|
||||
COPY packages/fileimport-service/package.json packages/fileimport-service/
|
||||
|
||||
RUN yarn workspaces focus --all
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --all
|
||||
|
||||
# build shared libraries
|
||||
COPY packages/shared packages/shared/
|
||||
|
||||
@@ -30,7 +30,7 @@ COPY packages/tailwind-theme ./packages/tailwind-theme/
|
||||
COPY packages/frontend-2 ./packages/frontend-2/
|
||||
|
||||
# hadolint ignore=DL3059
|
||||
RUN yarn workspaces focus -A
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus -A
|
||||
# hadolint ignore=DL3059
|
||||
RUN yarn workspaces foreach --exclude "@speckle/frontend-2" -W run build
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ COPY package.json yarn.lock ./
|
||||
COPY packages/shared/package.json ./packages/shared/
|
||||
COPY packages/monitor-deployment/package.json ./packages/monitor-deployment/
|
||||
|
||||
RUN yarn workspaces focus -A && yarn install
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus -A
|
||||
|
||||
# Only copy in the relevant source files for the dependencies
|
||||
COPY packages/shared ./packages/shared/
|
||||
@@ -42,7 +42,7 @@ COPY packages/monitor-deployment ./packages/monitor-deployment/
|
||||
RUN yarn workspaces foreach -W run build
|
||||
|
||||
WORKDIR /speckle-server/packages/monitor-deployment
|
||||
RUN yarn workspaces focus --production
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production
|
||||
|
||||
FROM gcr.io/distroless/nodejs18-debian12:nonroot@sha256:afdea027580f7afcaf1f316b2b3806690c297cb3ce6ddc5cf6a15804dc1c790f AS production-stage
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ COPY packages/viewer/package.json ./packages/viewer/
|
||||
COPY packages/objectloader/package.json ./packages/objectloader/
|
||||
COPY packages/shared/package.json ./packages/shared/
|
||||
|
||||
RUN yarn workspaces focus -A && yarn
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus -A
|
||||
|
||||
# Onyl copy in the relevant source files for the dependencies
|
||||
COPY packages/shared ./packages/shared/
|
||||
@@ -99,7 +99,7 @@ COPY --link --from=build-stage /speckle-server/packages/preview-frontend/dist ./
|
||||
|
||||
WORKDIR /speckle-server/packages/preview-service
|
||||
|
||||
RUN yarn workspaces focus --production
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production
|
||||
|
||||
RUN groupadd -g 30000 -r pptruser && \
|
||||
useradd -r -g pptruser -G audio,video -u 800 pptruser && \
|
||||
|
||||
@@ -34,7 +34,7 @@ COPY packages/server/package.json ./packages/server/
|
||||
COPY packages/shared/package.json ./packages/shared/
|
||||
COPY packages/objectloader/package.json ./packages/objectloader/
|
||||
|
||||
RUN yarn workspaces focus --all
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --all
|
||||
|
||||
# build shared libraries
|
||||
COPY packages/server ./packages/server/
|
||||
@@ -60,7 +60,7 @@ COPY packages/shared/package.json ./packages/shared/
|
||||
COPY packages/objectloader/package.json ./packages/objectloader/
|
||||
|
||||
WORKDIR /speckle-server/packages/server
|
||||
RUN yarn workspaces focus --production
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production
|
||||
|
||||
FROM gcr.io/distroless/nodejs18-debian12:nonroot@sha256:afdea027580f7afcaf1f316b2b3806690c297cb3ce6ddc5cf6a15804dc1c790f AS production-stage
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ COPY packages/frontend-2/type-augmentations/stubs ./packages/frontend-2/type-aug
|
||||
COPY packages/webhook-service/package.json ./packages/webhook-service/
|
||||
COPY packages/shared/package.json ./packages/shared/
|
||||
|
||||
RUN yarn workspaces focus --all
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --all
|
||||
|
||||
COPY packages/shared ./packages/shared/
|
||||
COPY packages/webhook-service/src ./packages/webhook-service/
|
||||
@@ -56,7 +56,7 @@ COPY packages/webhook-service/package.json ./packages/webhook-service/
|
||||
COPY packages/shared/package.json ./packages/shared/
|
||||
|
||||
WORKDIR /speckle-server/packages/webhook-service
|
||||
RUN yarn workspaces focus --production
|
||||
RUN PUPPETEER_SKIP_DOWNLOAD=true PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 yarn workspaces focus --production
|
||||
|
||||
FROM gcr.io/distroless/nodejs18-debian12:nonroot@sha256:afdea027580f7afcaf1f316b2b3806690c297cb3ce6ddc5cf6a15804dc1c790f AS production-stage
|
||||
ARG NODE_ENV
|
||||
|
||||
Reference in New Issue
Block a user