diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..b02fdd2 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,28 @@ +name: CI +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - run: npm ci + + - name: TypeScript check + run: npm run typecheck + + - name: Build + run: npm run build + env: + JWT_SECRET: ci-placeholder-secret + NEXT_TELEMETRY_DISABLED: 1 diff --git a/eslint.config.mjs b/eslint.config.mjs index 05e726d..a8a2835 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -1,6 +1,6 @@ import { defineConfig, globalIgnores } from "eslint/config"; -import nextVitals from "eslint-config-next/core-web-vitals"; -import nextTs from "eslint-config-next/typescript"; +import nextVitals from "eslint-config-next/core-web-vitals.js"; +import nextTs from "eslint-config-next/typescript.js"; const eslintConfig = defineConfig([ ...nextVitals, diff --git a/package.json b/package.json index dd459f8..c61cd8f 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "build:fix": "npm run build 2>&1 || node scripts/code-repair-agent.mjs --ci", "build": "next build", "start": "next start -p 3006", - "lint": "eslint" + "lint": "eslint", + "typecheck": "tsc --noEmit" }, "dependencies": { "@dnd-kit/core": "^6.3.1",