From d502b1b91899a892bc2e48a2b00b40d7badaa90c Mon Sep 17 00:00:00 2001 From: Werner Swart Date: Wed, 15 Jul 2026 19:53:02 +0100 Subject: [PATCH] feat: add CI workflow for linting, building, and testing applications --- .github/workflows/ci.yml | 64 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 64 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..3661491 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,64 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +concurrency: + group: ci-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + lint: + name: Lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Enable corepack + run: corepack enable + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 24 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm lint + + build-test: + name: Build and test (${{ matrix.app }}) + runs-on: ubuntu-latest + strategy: + matrix: + app: [store, mcp] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Enable corepack + run: corepack enable + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 24 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Typecheck ${{ matrix.app }} + run: pnpm --filter ${{ matrix.app }} typecheck + + - name: Build ${{ matrix.app }} + run: pnpm --filter ${{ matrix.app }} build + + - name: Test ${{ matrix.app }} + run: pnpm test:${{ matrix.app }}