Skip to content

Commit 21da6d6

Browse files
committed
fix: ci
1 parent 11ffab1 commit 21da6d6

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

.github/workflows/unit.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
uses: actions/setup-node@v3
2424
with:
2525
node-version-file: '.nvmrc'
26-
cache: 'yarn'
26+
- name: Enable Corepack
27+
run: corepack enable
2728
- name: Install root dependencies
28-
run: yarn
29+
run: yarn install --immutable
2930
- name: Build
3031
run: yarn ci:build
3132
- name: Run lint + type check

examples/hello-node-express-ts/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ COPY . .
1212
# example app listens on port 3000
1313
EXPOSE 3000
1414

15+
# Enable corepack for yarn v4 support
16+
RUN corepack enable
17+
1518
# symlink hyperdx sdk dependency
16-
RUN cd ./examples/hello-node-express-ts/ && npm run setup && npm run build
19+
RUN cd ./examples/hello-node-express-ts/ && yarn run setup && yarn run build
1720

1821
# run example express app
1922
CMD [ "node", "-r", "./examples/hello-node-express-ts/dist/instrumentation.js", "./examples/hello-node-express-ts/dist/index.js" ]

examples/hello-node-express/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@ COPY . .
1212
# example app listens on port 3000
1313
EXPOSE 3000
1414

15+
# Enable corepack for yarn v4 support
16+
RUN corepack enable
17+
1518
# symlink hyperdx sdk dependency
16-
RUN cd ./examples/hello-node-express/ && npm run setup
19+
RUN cd ./examples/hello-node-express/ && yarn run setup
1720

1821
# run example express app
1922
CMD [ "node", "./examples/hello-node-express/index.js" ]

examples/hello-node/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ COPY . .
1313

1414
EXPOSE 3000
1515

16+
# Enable corepack for yarn v4 support
17+
RUN corepack enable
18+
1619
# symlink hyperdx sdk dependency
17-
RUN cd ./examples/hello-node/ && npm run setup
20+
RUN cd ./examples/hello-node/ && yarn run setup
1821

1922
# run example script from root package.json
20-
CMD [ "npm", "run", "example-node" ]
23+
CMD [ "yarn", "run", "example-node" ]

0 commit comments

Comments
 (0)