@@ -41,19 +41,19 @@ jobs:
41
41
with :
42
42
bun-version : latest
43
43
44
- - name : 📦 Install Dependencies
44
+ - name : 📦 Install Root Dependencies
45
45
run : bun install --frozen-lockfile
46
46
47
+ - name : 🔨 Build Package
48
+ run : bun run build
49
+
47
50
- name : 📦 Install Example Dependencies
48
51
working-directory : ./example
49
52
run : bun install --frozen-lockfile
50
53
51
54
- name : 🎨 Check Code Formatting
52
55
run : bun run format --check
53
56
54
- - name : 🔨 Build Package
55
- run : bun run build
56
-
57
57
# Job 2: Unit Tests
58
58
test :
59
59
name : 🧪 Unit Tests
@@ -75,12 +75,16 @@ jobs:
75
75
with :
76
76
bun-version : ${{ matrix.bun-version }}
77
77
78
- - name : 📦 Install Dependencies
78
+ - name : 📦 Install Root Dependencies
79
79
run : bun install --frozen-lockfile
80
80
81
81
- name : 🔨 Build Package
82
82
run : bun run build
83
83
84
+ - name : 📦 Install Example Dependencies
85
+ working-directory : ./example
86
+ run : bun install --frozen-lockfile
87
+
84
88
- name : 🧪 Run Unit Tests
85
89
run : bun test:unit
86
90
@@ -112,12 +116,16 @@ jobs:
112
116
with :
113
117
bun-version : latest
114
118
115
- - name : 📦 Install Dependencies
119
+ - name : 📦 Install Root Dependencies
116
120
run : bun install --frozen-lockfile
117
121
118
122
- name : 🔨 Build Package
119
123
run : bun run build
120
124
125
+ - name : 📦 Install Example Dependencies
126
+ working-directory : ./example
127
+ run : bun install --frozen-lockfile
128
+
121
129
- name : 🎯 Run E2E Tests
122
130
run : bun test:e2e
123
131
@@ -200,44 +208,17 @@ jobs:
200
208
- name : 📦 Test Package Installation
201
209
run : |
202
210
echo "Testing package installation..."
203
- bun pack
211
+ npm pack
204
212
mkdir test-install && cd test-install
205
213
bun init -y
206
214
bun add ../elysia-http-exception-*.tgz
207
215
echo "✅ Package installation test passed"
208
216
209
- # Job 6: Security Audit
210
- security :
211
- name : 🛡️ Security Audit
212
- runs-on : ubuntu-latest
213
- if : github.event.pull_request.draft == false
214
-
215
- steps :
216
- - name : 📥 Checkout Repository
217
- uses : actions/checkout@v4
218
-
219
- - name : 🟢 Setup Bun
220
- uses : oven-sh/setup-bun@v1
221
- with :
222
- bun-version : latest
223
-
224
- - name : 📦 Install Dependencies
225
- run : bun install --frozen-lockfile
226
-
227
- - name : 🛡️ Run Security Audit
228
- run : |
229
- # Check for known vulnerabilities
230
- if command -v npm &> /dev/null; then
231
- npm audit --audit-level=high
232
- else
233
- echo "⚠️ npm not available, skipping audit"
234
- fi
235
-
236
- # Job 7: Results Summary
217
+ # Job 6: Results Summary
237
218
results :
238
219
name : 📋 Test Results Summary
239
220
runs-on : ubuntu-latest
240
- needs : [quality, test, e2e, example, build, security ]
221
+ needs : [quality, test, e2e, example, build]
241
222
if : always() && github.event.pull_request.draft == false
242
223
243
224
steps :
@@ -276,12 +257,6 @@ jobs:
276
257
echo "❌ **Build**: Failed" >> $GITHUB_STEP_SUMMARY
277
258
fi
278
259
279
- if [[ "${{ needs.security.result }}" == "success" ]]; then
280
- echo "✅ **Security**: Passed" >> $GITHUB_STEP_SUMMARY
281
- else
282
- echo "❌ **Security**: Failed" >> $GITHUB_STEP_SUMMARY
283
- fi
284
-
285
260
echo "" >> $GITHUB_STEP_SUMMARY
286
261
echo "📊 **Overall Status**: ${{ (needs.quality.result == 'success' && needs.test.result == 'success' && needs.e2e.result == 'success' && needs.example.result == 'success' && needs.build.result == 'success') && '✅ All Checks Passed' || '❌ Some Checks Failed' }}" >> $GITHUB_STEP_SUMMARY
287
262
0 commit comments