52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
name: quality
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- "projects/mobile/**"
|
|
- ".github/workflows/mobile/**"
|
|
pull_request:
|
|
paths:
|
|
- "projects/mobile/**"
|
|
- ".github/workflows/mobile/**"
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: projects/mobile
|
|
|
|
jobs:
|
|
quality:
|
|
name: Quality
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Setup Bun
|
|
uses: oven-sh/setup-bun@v2
|
|
|
|
- name: Cache Bun Dependencies
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.bun/install/cache
|
|
key: ${{ runner.os }}-bun-${{ hashFiles('projects/mobile/bun.lock') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-bun-
|
|
|
|
- name: Install Dependencies
|
|
run: bun install --frozen-lockfile
|
|
|
|
- name: Run Code Quality Checks
|
|
run: |
|
|
bun run check-types
|
|
bun run check
|
|
bun run lint:check
|