ci: split pr quality gates for mobile and desktop (#268)
This commit was merged in pull request #268.
This commit is contained in:
+2
-31
@@ -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:
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user