ci: use bun instead of node

This commit is contained in:
log101 2025-02-28 00:08:04 +03:00
parent 34ea3c2353
commit 7daff00e94
3 changed files with 4 additions and 13 deletions

View File

@ -1,9 +1,9 @@
FROM node:lts AS build
FROM oven/bun AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN bun install
COPY . .
RUN npm run build
RUN bun run build
FROM nginx:alpine AS runtime
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf

View File

@ -1,7 +0,0 @@
describe("Home", () =>
it("titles are correct", () => {
const page = cy.visit("http://localhost:4321");
page.get("title").should("have.text", "log101");
page.get("h1").should("have.text", "Log101");
}));

View File

@ -7,8 +7,7 @@
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"test": "cypress run --browser chrome && cypress run --browser firefox"
"astro": "astro"
},
"dependencies": {
"@astrojs/check": "0.9.4",
@ -20,7 +19,6 @@
"typescript": "^5.4.5"
},
"devDependencies": {
"cypress": "^13.11.0",
"prettier": "^3.2.5",
"prettier-plugin-astro": "^0.14.0"
},