fix: github actions

This commit is contained in:
2025-10-06 17:46:13 +02:00
parent 6a12760c99
commit 6b3e0323c5
8 changed files with 72 additions and 53 deletions
+51
View File
@@ -0,0 +1,51 @@
name: mobile quality
defaults:
run:
working-directory: projects/mobile
on:
push:
paths:
- "projects/mobile/**"
- ".github/workflows/mobile_*.yaml"
pull_request:
paths:
- "projects/mobile/**"
- ".github/workflows/mobile_*.yaml"
jobs:
quality:
name: eslint and prettier
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