Skip to content

Commit

Permalink
build cyclotron
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Jan 10, 2025
1 parent 17fae2a commit 214efc2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ jobs:

- name: Install package.json dependencies with pnpm
if: needs.changes.outputs.frontend == 'true'
run: pnpm install --frozen-lockfile
run: pnpm install --frozen-lockfile --filter .

- name: Install @posthog/hogvm
if: needs.changes.outputs.frontend == 'true'
run: cd hogvm/typescript && pnpm run compile

- name: Check formatting with prettier
if: needs.changes.outputs.frontend == 'true'
Expand Down Expand Up @@ -155,6 +159,10 @@ jobs:
if: needs.changes.outputs.frontend == 'true'
run: pnpm install --frozen-lockfile

- name: Install @posthog/hogvm
if: needs.changes.outputs.frontend == 'true'
run: cd hogvm/typescript && pnpm run compile

- name: Test with Jest
# set maxWorkers or Jest only uses 1 CPU in GitHub Actions
run: pnpm test:unit --maxWorkers=2 --shard=${{ matrix.chunk }}/3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-hog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@ jobs:
registry-url: https://registry.npmjs.org
- name: Install package.json dependencies
run: cd hogvm/typescript && pnpm install
- name: Install @posthog/hogvm
run: cd hogvm/typescript && pnpm run compile
- name: Publish the package in the npm registry
run: cd hogvm/typescript && npm publish --access public
env:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/storybook-chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ jobs:
- name: Install package.json dependencies with pnpm
run: pnpm install --frozen-lockfile

- name: Install @posthog/hogvm
run: cd hogvm/typescript && pnpm run compile

- name: Install CI utilities with pnpm
run: pnpm install http-server wait-on

Expand Down
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ COPY package.json pnpm-lock.yaml pnpm-workspace.yaml .npmrc tsconfig.json ./
COPY patches/ patches/
COPY rust rust/
COPY plugin-transpiler/ plugin-transpiler/
COPY plugin-server/package.json plugin-server/pnpm-lock.yaml plugin-server/
COPY plugin-server/package.json plugin-server/pnpm-lock.yaml plugin-server/tsconfig.json plugin-server/
COPY plugin-server/patches/ plugin-server/patches/
COPY hogvm/typescript/package.json hogvm/typescript/pnpm-lock.yaml hogvm/typescript/
COPY hogvm/typescript/ hogvm/typescript/
COPY frontend/@posthog/apps-common/package.json frontend/@posthog/apps-common/pnpm-lock.yaml frontend/@posthog/apps-common/
COPY frontend/@posthog/lemon-ui/package.json frontend/@posthog/lemon-ui/pnpm-lock.yaml frontend/@posthog/lemon-ui/

Expand All @@ -86,6 +86,12 @@ RUN apt-get update && \
cd ../plugin-transpiler && \
pnpm install --frozen-lockfile --store-dir /tmp/pnpm-store --filter . && \
pnpm build && \
cd ../hogvm/typescript && \
pnpm install --frozen-lockfile --store-dir /tmp/pnpm-store --filter . && \
pnpm compile && \
cd ../../rust/cyclotron-node && \
pnpm install --frozen-lockfile --store-dir /tmp/pnpm-store --filter . && \
pnpm build && \
rm -rf /tmp/pnpm-store

# Build the plugin server.
Expand Down

0 comments on commit 214efc2

Please sign in to comment.