File tree Expand file tree Collapse file tree 1 file changed +53
-0
lines changed
Expand file tree Collapse file tree 1 file changed +53
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Example Tests
2+ # This workflow runs tests for the DevExpress Angular Report Designer frontend.
3+
4+ on :
5+ push :
6+ branches :
7+ - ' [0-9]+.[0-9]+.[0-9]+\+' # Matches xx.x.x+ pattern
8+ pull_request :
9+ branches :
10+ - ' [0-9]+.[0-9]+.[0-9]+\+' # Matches xx.x.x+ pattern
11+ workflow_dispatch : # Allows manual triggering
12+
13+ env :
14+ NODE_VERSION : ' 20'
15+ DOTNET_VERSION : ' 8.0.x'
16+
17+ jobs :
18+ test :
19+ runs-on : windows-latest
20+ timeout-minutes : 5
21+
22+ steps :
23+ - name : Checkout repository
24+ uses : actions/checkout@v4
25+
26+ - name : Setup .NET
27+ uses : actions/setup-dotnet@v4
28+ with :
29+ dotnet-version : ${{ env.DOTNET_VERSION }}
30+
31+ - name : Setup Node.js
32+ uses : actions/setup-node@v4
33+ with :
34+ node-version : ${{ env.NODE_VERSION }}
35+ cache : ' npm'
36+ cache-dependency-path : |
37+ package-lock.json
38+
39+ - name : Setup Chrome
40+ uses : browser-actions/setup-chrome@v1
41+ with :
42+ chrome-version : stable
43+
44+ - name : Run Tests
45+ run : |
46+ $exitCode = pwsh -ExecutionPolicy Bypass -File test/main-test.ps1
47+ Write-Host "Test script exit code: $exitCode"
48+ if ($exitCode -ne 0) {
49+ Write-Error "❌ Tests failed with exit code: $exitCode"
50+ exit $exitCode
51+ }
52+ Write-Host "✅ Tests passed successfully"
53+ timeout-minutes : 5
You can’t perform that action at this time.
0 commit comments