mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-05-04 08:31:12 +00:00
37 lines
662 B
YAML
37 lines
662 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 build
|