From 8d6f1847c161d3b92624d3f7a6ec0541c4f9cc10 Mon Sep 17 00:00:00 2001 From: Osama Mabkhot <99215291+O2sa@users.noreply.github.com> Date: Fri, 15 May 2026 02:34:11 +0300 Subject: [PATCH 1/2] chore: add CI workflow for continuous integration and validation --- .github/workflows/ci.yml | 61 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3fac2de --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,61 @@ +name: CI + +on: + push: + branches: + - main + - develop + - "feat/**" + - "fix/**" + - "chore/**" + pull_request: + branches: + - main + - develop + +permissions: + contents: read + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + validate: + name: Validate (Node ${{ matrix.node-version }}) + runs-on: ubuntu-latest + timeout-minutes: 20 + strategy: + fail-fast: false + matrix: + node-version: ["20.x"] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup pnpm + uses: pnpm/action-setup@v4 + with: + run_install: false + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node-version }} + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Type check + run: pnpm exec tsc --noEmit + + - name: Lint + run: pnpm lint + + - name: Test + run: pnpm test -- --run + + - name: Build + run: pnpm build From 5eb24e524f6411284fe7156f5d2bb1226d457be2 Mon Sep 17 00:00:00 2001 From: Osama Mabkhot <99215291+O2sa@users.noreply.github.com> Date: Fri, 15 May 2026 02:38:11 +0300 Subject: [PATCH 2/2] chore: update Node.js version to 24.x and pnpm version to 10.29.2 in CI workflow --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3fac2de..e56a4c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: strategy: fail-fast: false matrix: - node-version: ["20.x"] + node-version: ["24.x"] steps: - name: Checkout @@ -37,6 +37,7 @@ jobs: - name: Setup pnpm uses: pnpm/action-setup@v4 with: + version: 10.29.2 run_install: false - name: Setup Node.js