Skip to content

feat: implement Doc-Bot automated documentation maintenance service #1

feat: implement Doc-Bot automated documentation maintenance service

feat: implement Doc-Bot automated documentation maintenance service #1

Workflow file for this run

name: PR Checks
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
validate:
name: Validate PR
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Check formatting
run: npm run format -- --check
- name: Run linter
run: npm run lint
- name: Run tests
run: npm test
- name: Build TypeScript
run: npm run build
- name: Check for TypeScript errors
run: npx tsc --noEmit
size-check:
name: Check Bundle Size
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Check dist size
run: |
DIST_SIZE=$(du -sh dist | cut -f1)
echo "Built distribution size: $DIST_SIZE"
echo "::notice title=Distribution Size::$DIST_SIZE"