Files

34 lines
1.1 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: kalite-kontrol
on: [push]
jobs:
kontrol:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Kodu indir
uses: actions/checkout@v4
with:
github-server-url: https://gitea.twinpay.one
- name: Çakışma işareti kalmamış olmalı
run: |
if grep -rn '^<<<<<<< ' --include='*.js' --include='*.html' --include='*.md' .; then
echo 'HATA: çözülmemiş çakışma işareti var!'; exit 1
fi
echo 'temiz: çakışma işareti yok'
- name: Sessiz bozulma dersi — tanımsız çağrı olmasın
run: |
grep -q 'function sonFiyat' fiyat.js
if grep -rn 'indirimliFiyat(' --include='*.js' .; then
echo 'HATA: tanımsız fonksiyon çağrısı (indirimliFiyat)'; exit 1
fi
echo 'temiz: tüm çağrılar tanımlı'
- name: Çöp tarihe girmemiş olmalı
run: |
if git ls-files | grep -E '^(node_modules/|.*\.log$)'; then
echo 'HATA: izlenmemesi gereken dosya izleniyor!'; exit 1
fi
echo 'temiz: node_modules ve loglar izlenmiyor'