xtablo-source/.github/workflows/ci.yml
2026-04-19 17:28:11 +02:00

54 lines
1,010 B
YAML

name: CI
on:
pull_request:
push:
branches:
- main
- develop
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
checks:
name: Checks
runs-on:
- self-hosted
- linux
- x64
timeout-minutes: 45
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.19.0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Typecheck
run: pnpm typecheck
- name: Test main app
run: pnpm --filter @xtablo/main test
- name: Test clients app
run: pnpm --filter @xtablo/clients test
- name: Typecheck API
run: pnpm --filter @xtablo/api typecheck