-
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (49 loc) · 1.45 KB
/
test.yml
File metadata and controls
58 lines (49 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: 🧪 Test
run-name: 🧪 Test (${{ github.ref_name }})
on:
push:
branches:
- develop*
paths:
- '**/*.ts'
- '**/*.json'
pull_request:
branches:
- develop*
paths:
- '**/*.ts'
- '**/*.json'
jobs:
test:
name: 🧪 Test (${{ github.ref_name }})
runs-on: ubuntu-latest
steps:
- name: 🚚 Checkout (${{ github.ref_name }})
uses: actions/checkout@v5
- name: 📥 Install dependencies
run: npm ci
- name: 🔨 Build extension
run: npm run build
- name: ✅ Validate build output
run: |
# Check if dist directory exists
if [ ! -d "dist" ]; then
echo "❌ dist directory not found" | tee -a $GITHUB_STEP_SUMMARY
exit 1
fi
# Check if manifest.json exists
if [ ! -f "dist/manifest.json" ]; then
echo "❌ dist/manifest.json not found" | tee -a $GITHUB_STEP_SUMMARY
exit 1
fi
# Check if content.js exists
if [ ! -f "dist/content.js" ]; then
echo "❌ dist/content.js not found" | tee -a $GITHUB_STEP_SUMMARY
exit 1
fi
# Check if background.js exists
if [ ! -f "dist/background.js" ]; then
echo "❌ dist/background.js not found" | tee -a $GITHUB_STEP_SUMMARY
exit 1
fi
echo "✅ Build validation passed" | tee -a $GITHUB_STEP_SUMMARY