Skip to content

Commit 687c685

Browse files
committed
New yml
1 parent 0c22fb0 commit 687c685

File tree

3 files changed

+48
-1
lines changed

3 files changed

+48
-1
lines changed

Terminal.sln

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ EndProject
3131
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHub", "GitHub", "{13BB2C46-B324-4B9C-92EB-CE6184D4736E}"
3232
ProjectSection(SolutionItems) = preProject
3333
.github\workflows\api-docs.yml = .github\workflows\api-docs.yml
34-
.github\workflows\dotnet-core.yml = .github\workflows\dotnet-core.yml
3534
GitVersion.yml = GitVersion.yml
3635
.github\workflows\publish.yml = .github\workflows\publish.yml
36+
stress-tests.yml = stress-tests.yml
37+
.github\workflows\unit-and-integration-tests.yml = .github\workflows\unit-and-integration-tests.yml
3738
EndProjectSection
3839
EndProject
3940
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docs", "Docs", "{C7A51224-5E0F-4986-AB37-A6BF89966C12}"

stress-tests.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Run StressTests
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # Runs every day at midnight UTC
6+
7+
jobs:
8+
run_stress_tests:
9+
runs-on: ${{ matrix.os }}
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
os: [ ubuntu-latest, windows-latest, macos-latest ]
14+
15+
timeout-minutes: 70 # Allow some buffer time beyond the 1-hour test duration
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup .NET Core
21+
uses: actions/setup-dotnet@v4
22+
with:
23+
dotnet-version: 8.x
24+
dotnet-quality: 'ga'
25+
26+
- name: Install dependencies
27+
run: dotnet restore
28+
29+
- name: Build StressTests
30+
run: dotnet build StressTests --configuration Debug --no-restore
31+
32+
- name: Run StressTests for 1 hour
33+
run: |
34+
end=$((SECONDS+3600))
35+
while [ $SECONDS -lt $end ]; do
36+
dotnet test StressTests --no-build --verbosity normal
37+
done
38+
39+
- name: Upload Test Logs
40+
if: always()
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: stress-test-logs-${{ runner.os }}
44+
path: |
45+
logs/
46+
StressTests/TestResults/

0 commit comments

Comments
 (0)