From 324e586a7d416aab30708879c0c4cfe75210c870 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Tue, 2 Jun 2026 07:53:59 -0700 Subject: [PATCH] add gh action for quality gate --- .github/workflows/pr-quality-gate.yml | 63 +++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 .github/workflows/pr-quality-gate.yml diff --git a/.github/workflows/pr-quality-gate.yml b/.github/workflows/pr-quality-gate.yml new file mode 100644 index 0000000..d534add --- /dev/null +++ b/.github/workflows/pr-quality-gate.yml @@ -0,0 +1,63 @@ +name: PR Quality Gate (client applications) + +on: + pull_request: + paths: + - "js/mobile/**" + - "js/desktop/**" + branches: [ main ] + types: [ opened, synchronize, reopened ] + +jobs: + mobile: + name: Lint & format check + 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 runtime + uses: actions/setup-node@v4 + with: + node-node-version: '20' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run Code Linter + run: yarn lint + + - name: Run Unit Tests + run: yarn format:check + desktop: + name: Lint & format check + runs-on: ubuntu-latest + defaults: + run: + working-directory: js/desktop + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set up Node.js runtime + uses: actions/setup-node@v4 + with: + node-node-version: '20' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Run Code Linter + run: yarn lint + + - name: Run Unit Tests + run: yarn format:check + +