39 lines
834 B
YAML
39 lines
834 B
YAML
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"
|