diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..0aa482d --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,30 @@ +name: ci + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + verify: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: PHP 8.5 syntax check (webhook-receiver.php) + run: | + php -v + php -l deploy/webhook-receiver.php + + - name: Setup Node.js 24.22.1 + uses: actions/setup-node@v4 + with: + node-version: "24.22.1" + + - name: Build admin-ui + working-directory: admin-ui + run: | + npm ci + npm run build diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..ce62013 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +24.22.1 diff --git a/admin-ui/Dockerfile b/admin-ui/Dockerfile index b3f12c7..e166dbc 100644 --- a/admin-ui/Dockerfile +++ b/admin-ui/Dockerfile @@ -1,4 +1,4 @@ -FROM node:20-alpine AS build +FROM node:24-alpine AS build ARG GIT_SHA=unknown WORKDIR /app COPY package.json package-lock.json ./ diff --git a/admin-ui/package.json b/admin-ui/package.json index 6211c64..029aa90 100644 --- a/admin-ui/package.json +++ b/admin-ui/package.json @@ -23,5 +23,8 @@ "tailwindcss": "^3.4.14", "typescript": "^5.6.3", "vite": "^5.4.10" + }, + "engines": { + "node": ">=24.22.1" } } diff --git a/deploy/Dockerfile b/deploy/Dockerfile index 8ad69fb..b90851f 100644 --- a/deploy/Dockerfile +++ b/deploy/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.3-cli-alpine +FROM php:8.5-cli-alpine RUN apk add --no-cache bash git curl docker-cli docker-cli-compose diff --git a/web/Dockerfile b/web/Dockerfile index ae8c06c..0490b62 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -1,5 +1,5 @@ # Build stage — compile the React admin UI -FROM node:20-alpine AS builder +FROM node:24-alpine AS builder WORKDIR /build COPY admin-ui/package*.json ./