From 307e778d62f2df8437b0e172a13032783123a2ba Mon Sep 17 00:00:00 2001 From: bilalgursen Date: Fri, 24 Jul 2026 02:56:04 +0300 Subject: [PATCH] feat: add CI workflow configuration for automated builds and linting --- .gitea/workflows/ci.yaml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..4297daa --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,38 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + version: 9 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm lint + + - name: Build + run: pnpm build + env: + # Placeholder değerler — build sırasında env okuyan kod varsa çökmemesi için. + # Gerçek değerleri Gitea > Settings > Actions > Secrets üzerinden secrets olarak ekleyin. + NEXT_TELEMETRY_DISABLED: "1"