Skip to content

Commit daa60d5

Browse files
author
Natalia Kazakova (DevExpress)
committed
add workflow
1 parent de4e567 commit daa60d5

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/test.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

0 commit comments

Comments
 (0)