From 508b8db9495baf176838de6db1363a026795bb25 Mon Sep 17 00:00:00 2001 From: Daniel Smolsky Date: Mon, 24 Nov 2025 13:09:31 -0500 Subject: [PATCH] Add CI/CD workflow for PR validation with type checking, build verification, and security audits --- .github/workflows/pr-checks.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/pr-checks.yml diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml new file mode 100644 index 00000000..f9c7804c --- /dev/null +++ b/.github/workflows/pr-checks.yml @@ -0,0 +1,35 @@ +name: PR Checks + +on: + pull_request: + branches: [main, master] + push: + branches: [main, master] + +jobs: + validate: + name: Type Check, Build & Audit + 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: Type check + run: npm run typecheck + + - name: Build + run: npm run build + + - name: Security audit + run: npm audit --audit-level=high + continue-on-error: false