mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
refactor: use bun in Dockerfile and CI workflow
This commit is contained in:
1 parent
77577d9b8d
commit
634dc8f987
16 files changed
+100
-72
No files matched your search
+13
-3
@@ -1,12 +1,22 @@
|
||||
FROM cypress/browsers
|
||||
|
||||
COPY --from=oven/bun:1.3.14 /usr/local/bin/bun /usr/local/bin/bun
|
||||
|
||||
WORKDIR /e2e
|
||||
COPY package.json yarn.lock ./
|
||||
COPY package.json bun.lock ./
|
||||
COPY app/package.json ./app/package.json
|
||||
COPY server/package.json ./server/package.json
|
||||
COPY services/analytics/package.json ./services/analytics/package.json
|
||||
COPY tests/package.json ./tests/package.json
|
||||
RUN yarn install --frozen-lockfile
|
||||
COPY packages/constants/package.json ./packages/constants/package.json
|
||||
COPY packages/file-graph/package.json ./packages/file-graph/package.json
|
||||
COPY packages/game/package.json ./packages/game/package.json
|
||||
COPY packages/models/package.json ./packages/models/package.json
|
||||
COPY packages/utils/package.json ./packages/utils/package.json
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
COPY quests ./quests
|
||||
COPY tests ./tests
|
||||
WORKDIR /e2e/tests
|
||||
|
||||
CMD [ "yarn", "test" ]
|
||||
CMD [ "bun", "run", "test" ]
|
||||
+2
-2
@@ -6,8 +6,8 @@
|
||||
"type": "commonjs",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"test": "yarn cypress run",
|
||||
"test:open": "yarn cypress open"
|
||||
"test": "cypress run",
|
||||
"test:open": "cypress open"
|
||||
},
|
||||
"dependencies": {
|
||||
"@testing-library/cypress": "^10.0.1",
|
||||
|
||||
Reference in new issue
Block a user