Skip to content

Commit 84df3c7

Browse files
g-cqdclaude
andcommitted
Add CI workflow
- Add test + snyk + dependency-audit jobs - Consistent structure with other projects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 57893d9 commit 84df3c7

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/code-quality.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Code Quality & Security
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
test:
16+
name: Test
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Setup Bun
22+
uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version: latest
25+
26+
- name: Install dependencies
27+
run: bun install
28+
29+
- name: Run tests
30+
run: bun test
31+
32+
snyk:
33+
name: Security Scan
34+
runs-on: ubuntu-latest
35+
steps:
36+
- uses: actions/checkout@v4
37+
38+
- name: Setup Bun
39+
uses: oven-sh/setup-bun@v2
40+
with:
41+
bun-version: latest
42+
43+
- name: Install dependencies
44+
run: bun install
45+
46+
- name: Run Snyk
47+
uses: snyk/actions/node@master
48+
continue-on-error: true
49+
env:
50+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
51+
with:
52+
args: --severity-threshold=high
53+
54+
audit:
55+
name: Dependency Audit
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v4
59+
60+
- name: Setup Bun
61+
uses: oven-sh/setup-bun@v2
62+
with:
63+
bun-version: latest
64+
65+
- name: Install and audit
66+
run: |
67+
bun install
68+
bun audit || echo "::warning::Vulnerabilities found"

0 commit comments

Comments
 (0)