Skip to content

Commit e7e275b

Browse files
fix: order in github action fixed
Need build BEFORE test because we need to have all dist folders.
1 parent d3bc3aa commit e7e275b

File tree

6 files changed

+28
-6
lines changed

6 files changed

+28
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ jobs:
8787
test:
8888
runs-on: ubuntu-latest
8989
needs:
90-
- install
90+
- build
9191

9292
steps:
9393
- name: Checkout code

Dockerfile-mono

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,32 @@
1-
FROM node:20-alpine
1+
FROM node:20-alpine as install-stage
22

33
WORKDIR /app
44
COPY . .
55

6-
RUN npm ci && \
7-
npm run lint && \
8-
npm run test && \
9-
npm run build
6+
RUN npm ci
7+
8+
FROM node:20-alpine as build-stage
9+
COPY --from=install-stage /app /app
10+
WORKDIR /app
11+
12+
RUN npm run lint && \
13+
npm run test
14+
15+
FROM node:20-alpine as build-stage
16+
COPY --from=install-stage /app /app
17+
WORKDIR /app
18+
19+
RUN npm run build
20+
21+
FROM node:20-alpine as run-stage
22+
COPY --from=build-stage /app /app
23+
WORKDIR /app
1024

1125
EXPOSE 8081
1226
EXPOSE 8082
1327
EXPOSE 8083
1428
EXPOSE 8084
1529

1630
CMD ["npm", "start"]
31+
32+

apps/lisa/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@babel/preset-env": "^7.24.0",
1616
"@babel/preset-typescript": "^7.26.0",
1717
"@types/jest": "^29.0.0",
18+
"@vue/cli-service": "~5.0.0",
1819
"@vue/test-utils": "^2.4.4",
1920
"@vue/vue3-jest": "^29.0.0",
2021
"babel-jest": "^29.0.0",

apps/max/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@babel/preset-env": "^7.24.3",
1616
"@babel/preset-typescript": "^7.26.0",
1717
"@types/jest": "^29.0.0",
18+
"@vue/cli-service": "~5.0.0",
1819
"@vue/test-utils": "^2.4.5",
1920
"@vue/vue3-jest": "^29.0.0",
2021
"babel-jest": "^29.0.0",

apps/tom/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"@babel/preset-env": "^7.24.3",
1616
"@babel/preset-typescript": "^7.26.0",
1717
"@types/jest": "^29.0.0",
18+
"@vue/cli-service": "~5.0.0",
1819
"@vue/test-utils": "^2.4.5",
1920
"@vue/vue3-jest": "^29.0.0",
2021
"babel-jest": "^29.0.0",

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)