infra: add pr quality gate for client applications (#233)

* add gh action for quality gate

* test quality gate

* fix job

* rename gh action jobs

* format
This commit was merged in pull request #233.
This commit is contained in:
Arjun Patel
2026-06-02 08:04:58 -07:00
committed by GitHub
parent a8a0b7db1b
commit fa3c8268b2
3 changed files with 70 additions and 2 deletions
+68
View File
@@ -0,0 +1,68 @@
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 (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 Unit Tests
run: yarn format:check
desktop:
name: Lint & format check (desktop)
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
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 Unit Tests
run: yarn format:check