forked from 0xVida/stellar-suite
-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (68 loc) · 2.24 KB
/
test.yml
File metadata and controls
81 lines (68 loc) · 2.24 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Extension Tests
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
workflow_dispatch:
jobs:
test:
name: Run Tests
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
defaults:
run:
working-directory: ./extension
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: extension/package-lock.json
- name: Install dependencies
run: npm ci
- name: Compile TypeScript
run: npm run compile
- name: Verify compilation output
run: |
echo "Checking compilation output..."
if [ ! -f "out/extension.js" ]; then
echo "error: extension.js not found in out/"
exit 1
fi
if [ ! -f "out/extension.js.map" ]; then
echo "warning: extension.js.map not found"
fi
echo "✓ Main extension file exists"
echo "Checking output structure..."
ls -la out/ | head -20
echo "✓ Compilation output verified"
echo "Output file size: $(du -h out/extension.js | cut -f1)"
- name: Test prepublish process
run: npm run vscode:prepublish
- name: Verify prepublish output
run: |
echo "Verifying prepublish output..."
if [ ! -f "out/extension.js" ]; then
echo "error: extension.js missing after prepublish"
exit 1
fi
echo "✓ Prepublish output verified"
echo "Output file size: $(du -h out/extension.js | cut -f1)"
- name: Verify compilation (tests removed)
run: |
echo "✓ Compilation successful"
echo "⚠ Tests removed during simplification - all test dependencies were removed"
- name: Upload compilation output
if: always()
uses: actions/upload-artifact@v4
with:
name: compilation-output
path: |
extension/out/**/*
retention-days: 7