Files
Termix/.github/workflows/pr-check.yml
T
2026-05-20 15:12:58 -05:00

41 lines
806 B
YAML

name: PR Check
on:
pull_request:
branches: [main, dev-*]
jobs:
lint-and-build:
runs-on: blacksmith-2vcpu-ubuntu-2404
env:
NODE_OPTIONS: "--max-old-space-size=4096"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npx eslint .
- name: Run Prettier check
run: npx prettier --check .
- name: Type check
run: npx tsc --noEmit
- name: Build
run: |
npm run prebuild
npx vite build
npx tsc -p tsconfig.node.json
cp src/backend/package.json dist/backend/package.json