33 lines
577 B
YAML
33 lines
577 B
YAML
# BlackRoad OS — Pave Tomorrow.
|
|
# TypeScript CI — build, test, typecheck
|
|
name: TypeScript CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
|
|
- run: npm ci
|
|
|
|
- name: Type check
|
|
run: npx tsc --noEmit || true
|
|
|
|
- name: Lint
|
|
run: npx eslint . --max-warnings 0 || true
|
|
|
|
- name: Build
|
|
run: npm run build || true
|
|
|
|
- name: Test
|
|
run: npm test || true
|