Skip to content

Commit b5304e3

Browse files
authored
Add CI/CD workflow for PR validation with type checking, build verification, and security audits (#5)
1 parent 29a6903 commit b5304e3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/pr-checks.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: PR Checks
2+
3+
on:
4+
pull_request:
5+
branches: [main, master]
6+
push:
7+
branches: [main, master]
8+
9+
jobs:
10+
validate:
11+
name: Type Check, Build & Audit
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: '20'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm ci
26+
27+
- name: Type check
28+
run: npm run typecheck
29+
30+
- name: Build
31+
run: npm run build
32+
33+
- name: Security audit
34+
run: npm audit --audit-level=high
35+
continue-on-error: false

0 commit comments

Comments
 (0)