Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/pr-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: PR Check (Lint & Build)

on:
pull_request:
branches:
- main

jobs:
validate:
name: Validate PR (lint + build)
runs-on: ubuntu-latest

steps:
- name: Checkout PR code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Lint code
run: npm run lint

- name: Build project
run: npm run build
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Built with:
7. ✅ **Example Component** with SCSS modules and hooks
8. ✅ **VS Code integration** (`.vscode/settings.json`, `.editorconfig`)
9. ✅ **ESLint + Prettier** pre-configured for modern standards
10. ✅ **GitHub Actions PR Validation** – Automatically lints and builds on pull requests targeting `main`

🔧 Nothing super opinionated. Just fast, clean, and extensible.

Expand All @@ -38,6 +39,12 @@ Created by [@stefanbobrowski](https://github.com/stefanbobrowski)

---

## 🧷 GitHub Code

[GitHub – vite-react-ts-starter](https://github.com/stefanbobrowski/vite-react-ts-starter)

---

## 📄 License

Licensed under the **Apache License 2.0**.
Expand Down