From 77b4e95a93962f06db909d793d920a12a2d27f77 Mon Sep 17 00:00:00 2001 From: RJ Date: Wed, 3 Dec 2025 16:28:51 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20add=20pr=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pr-checks.yml | 36 ++++++++++++++++++++++++++++++ public/blog/tech/articol-tehnic.md | 20 ----------------- 2 files changed, 36 insertions(+), 20 deletions(-) create mode 100644 .gitea/workflows/pr-checks.yml delete mode 100644 public/blog/tech/articol-tehnic.md diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml new file mode 100644 index 0000000..78aa935 --- /dev/null +++ b/.gitea/workflows/pr-checks.yml @@ -0,0 +1,36 @@ +name: PR Checks + +on: + pull_request: + branches: + - staging + - main + +jobs: + lint-and-build: + runs-on: node-22 + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: 📥 Install dependencies + run: npm ci + + - name: 🔍 Run ESLint + run: npm run lint + continue-on-error: true + + - name: 💅 Check code formatting (Prettier) + run: npm run format:check + continue-on-error: true + + - name: 🔤 TypeScript type checking + run: npx tsc --noEmit + + - name: ✅ All quality checks passed + run: | + echo "✅ All code quality checks passed successfully!" + echo " - ESLint: No linting errors" + echo " - Prettier: Code is properly formatted" + echo " - TypeScript: No type errors" diff --git a/public/blog/tech/articol-tehnic.md b/public/blog/tech/articol-tehnic.md deleted file mode 100644 index b6401bb..0000000 --- a/public/blog/tech/articol-tehnic.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -title: 'Technical Article' -description: 'A technical article to test internal links' -date: '2025-01-10' -author: 'John Doe' -category: 'Tech' -tags: ['tech', 'test'] ---- - -# Technical Article - -This is a test article for internal blog post linking. - -Imagine cooler: - -![Cooler image:](articol-tehnic.md) - -## Content - -You are reading the technical article that was linked from the example post.