-
Notifications
You must be signed in to change notification settings - Fork 2
54 lines (42 loc) · 1.35 KB
/
Copy pathtest.yml
File metadata and controls
54 lines (42 loc) · 1.35 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
name: Tests
on:
push:
# Run on all branches
pull_request:
# Run on PRs to any branch
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: Install npm dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build design system
run: npm run build
- name: Restore .NET dependencies
run: dotnet restore Ivy.DesignSystem.csproj
- name: Verify C# compilation
run: dotnet build Ivy.DesignSystem.csproj --configuration Release
- name: Test summary
if: always()
run: |
echo "## 🧪 Test Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "✅ Tests completed successfully!" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Test Coverage" >> $GITHUB_STEP_SUMMARY
echo "- C# Generator Tests" >> $GITHUB_STEP_SUMMARY
echo "- Token Structure Validation Tests" >> $GITHUB_STEP_SUMMARY
echo "- Build Verification" >> $GITHUB_STEP_SUMMARY