Add TypeScript CI workflow template
This commit is contained in:
32
workflows/ts-ci.yml
Normal file
32
workflows/ts-ci.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user