From cce758d2bafaa94cced1423c7822c19fc94054fb Mon Sep 17 00:00:00 2001 From: Mahmoud Arafa Date: Mon, 14 Jul 2025 22:42:31 +0200 Subject: [PATCH] RAC-08: add ci/cd to check branch build --- .github/workflows/ci-cd.yml | 71 +++++++++++++++++++++++++++++++++++++ src/App.tsx | 6 +--- src/index.css | 16 --------- 3 files changed, 72 insertions(+), 21 deletions(-) create mode 100644 .github/workflows/ci-cd.yml diff --git a/.github/workflows/ci-cd.yml b/.github/workflows/ci-cd.yml new file mode 100644 index 0000000..d4911b0 --- /dev/null +++ b/.github/workflows/ci-cd.yml @@ -0,0 +1,71 @@ +name: CI/CD + +on: + push: + branches: + - "**" + pull_request: + branches: + - "**" + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Install dependencies + run: | + corepack enable + corepack prepare pnpm@latest --activate + pnpm install + - name: Lint + run: pnpm run lint + + test: + name: Test + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Install dependencies + run: | + corepack enable + corepack prepare pnpm@latest --activate + pnpm install + - name: Test + run: pnpm run test:coverage + - name: Upload coverage report + if: success() && always() + uses: actions/upload-artifact@v4 + with: + name: coverage-report + path: coverage/ + + build: + name: Build + runs-on: ubuntu-latest + needs: [lint, test] + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "20" + - name: Install dependencies + run: | + corepack enable + corepack prepare pnpm@latest --activate + pnpm install + - name: Build + run: pnpm run build diff --git a/src/App.tsx b/src/App.tsx index 98d20ea..84021a7 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,11 +1,7 @@ import { HomePage } from "@/components"; function App() { - return ( - <> - - - ); + return ; } export default App; diff --git a/src/index.css b/src/index.css index 52a0075..b79dbcd 100644 --- a/src/index.css +++ b/src/index.css @@ -7,11 +7,6 @@ --color-primary-200: #e2e8f0; --color-primary-300: #cbd5e0; --color-primary-400: #a0aec0; - --color-primary-500: #718096; - --color-primary-600: #4a5568; - --color-primary-700: #2d3748; - --color-primary-800: #1a202c; - --color-primary-900: #171923; /* color brand */ --color-brand-50: #fff5f5; @@ -22,8 +17,6 @@ --color-brand-500: #ff6b35; --color-brand-600: #e53e3e; --color-brand-700: #c53030; - --color-brand-800: #9b2c2c; - --color-brand-900: #742a2a; /* color orange */ @@ -35,20 +28,11 @@ --color-orange-500: #ff6b35; --color-orange-600: #e53e3e; --color-orange-700: #c05621; - --color-orange-800: #9c4221; - --color-orange-900: #7b341e; --color-navy-50: #f8fafc; --color-navy-100: #f1f5f9; --color-navy-200: #e2e8f0; --color-navy-300: #cbd5e1; - --color-navy-400: #94a3b8; - --color-navy-500: #64748b; - --color-navy-600: #475569; - --color-navy-700: #334155; - --color-navy-800: #1e293b; - --color-navy-900: #0f172a; - --color-navy-950: #020617; } @layer utilities {