56 lines
1 KiB
YAML
56 lines
1 KiB
YAML
name: xtablo-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
|
|
- xtablo-runner
|
|
|
|
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
|