From b9a8529e72d6dac845765de0cf85a88fb0445078 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Thu, 11 Jun 2026 10:57:03 -0700 Subject: [PATCH] ci: split pr quality gates for mobile and desktop (#268) --- ...ate-js.yml => pr-quality-gate-desktop.yml} | 33 +---------------- .github/workflows/pr-quality-gate-mobile.yml | 37 +++++++++++++++++++ 2 files changed, 39 insertions(+), 31 deletions(-) rename .github/workflows/{pr-quality-gate-js.yml => pr-quality-gate-desktop.yml} (53%) create mode 100644 .github/workflows/pr-quality-gate-mobile.yml diff --git a/.github/workflows/pr-quality-gate-js.yml b/.github/workflows/pr-quality-gate-desktop.yml similarity index 53% rename from .github/workflows/pr-quality-gate-js.yml rename to .github/workflows/pr-quality-gate-desktop.yml index 9253c04..bfde48a 100644 --- a/.github/workflows/pr-quality-gate-js.yml +++ b/.github/workflows/pr-quality-gate-desktop.yml @@ -1,43 +1,14 @@ -name: PR Quality Gate (client applications) +name: PR Quality Gate (Desktop) on: pull_request: paths: - - "js/mobile/**" - "js/desktop/**" branches: [ main ] types: [ opened, synchronize, reopened ] jobs: - mobile: - name: Lint & format check (mobile) - runs-on: ubuntu-latest - defaults: - run: - working-directory: js/mobile - - steps: - - name: Check out repository code - uses: actions/checkout@v4 - - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Enable Corepack - run: corepack enable - - - name: Install dependencies - run: yarn install --immutable - - - name: Run Code Linter - run: yarn lint - - - name: Run Format Check - run: yarn format:check - - desktop: + verify: name: Lint & format check (desktop) runs-on: ubuntu-latest defaults: diff --git a/.github/workflows/pr-quality-gate-mobile.yml b/.github/workflows/pr-quality-gate-mobile.yml new file mode 100644 index 0000000..7aead68 --- /dev/null +++ b/.github/workflows/pr-quality-gate-mobile.yml @@ -0,0 +1,37 @@ +name: PR Quality Gate (Mobile) + +on: + pull_request: + paths: + - "js/mobile/**" + branches: [ main ] + types: [ opened, synchronize, reopened ] + +jobs: + verify: + name: Lint & format check (mobile) + runs-on: ubuntu-latest + defaults: + run: + working-directory: js/mobile + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Enable Corepack + run: corepack enable + + - name: Install dependencies + run: yarn install --immutable + + - name: Run Code Linter + run: yarn lint + + - name: Run Format Check + run: yarn format:check