Skip to content

Commit 6573978

Browse files
committedMar 5, 2025
tweak ymls
1 parent 613292d commit 6573978

File tree

3 files changed

+39
-25
lines changed

3 files changed

+39
-25
lines changed
 

‎.github/workflows/build-release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Ensure that Release builds are not broken
2+
3+
on:
4+
push:
5+
branches: [ v2_release, v2_develop ]
6+
paths-ignore:
7+
- '**.md'
8+
pull_request:
9+
branches: [ v2_release, v2_develop ]
10+
paths-ignore:
11+
- '**.md'
12+
13+
jobs:
14+
build_release:
15+
# Ensure that RELEASE builds are not broken
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup .NET Core
22+
uses: actions/setup-dotnet@v4
23+
with:
24+
dotnet-version: 8.x
25+
dotnet-quality: 'ga'
26+
27+
- name: Build Release Terminal.Gui
28+
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release
29+
30+
- name: Pack Release Terminal.Gui
31+
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages
32+
33+
- name: Build Release Solution
34+
run: dotnet build --configuration Release

‎.github/workflows/unit-tests.yml

+4-25
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212

1313
jobs:
1414
non_parallel_unittests:
15+
name: Non-Parallel Unit Tests
1516
runs-on: ${{ matrix.os }}
1617
strategy:
1718
# Turn off fail-fast to let all runners run even if there are errors
@@ -63,6 +64,7 @@ jobs:
6364
TestResults/UnitTests/
6465
6566
parallel_unittests:
67+
name: Parallel Unit Tests
6668
runs-on: ${{ matrix.os }}
6769
strategy:
6870
# Turn off fail-fast to let all runners run even if there are errors
@@ -98,40 +100,17 @@ jobs:
98100
shell: bash
99101
run: echo "{VSTEST_DUMP_PATH}={logs/UnitTestsParallelizable/${{ runner.os }}/}" >> $GITHUB_ENV
100102

101-
- name: Run UnitTests
103+
- name: Run UnitTestsParallelizable
102104
run: |
103105
dotnet test Tests/UnitTestsParallelizable --no-build --verbosity normal --collect:"XPlat Code Coverage" --settings Tests/UnitTestsParallelizable/coverlet.runsettings --diag:logs/UnitTestsParallelizable/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always -- xunit.stopOnFail=true
104106
105107
# mv -v Tests/UnitTestsParallelizable/TestResults/*/*.* TestResults/UnitTestsParallelizable/
106108

107-
- name: Upload Test Logs
109+
- name: Upload UnitTestsParallelizable Logs
108110
if: always()
109111
uses: actions/upload-artifact@v4
110112
with:
111113
name: parallel_unittests-logs-${{ runner.os }}
112114
path: |
113115
logs/UnitTestsParallelizable/
114116
TestResults/UnitTestsParallelizable/
115-
116-
117-
build_release:
118-
# Ensure that RELEASE builds are not broken
119-
runs-on: ubuntu-latest
120-
steps:
121-
- name: Checkout code
122-
uses: actions/checkout@v4
123-
124-
- name: Setup .NET Core
125-
uses: actions/setup-dotnet@v4
126-
with:
127-
dotnet-version: 8.x
128-
dotnet-quality: 'ga'
129-
130-
- name: Build Release Terminal.Gui
131-
run: dotnet build Terminal.Gui/Terminal.Gui.csproj --configuration Release
132-
133-
- name: Pack Release Terminal.Gui
134-
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj --configuration Release --output ./local_packages
135-
136-
- name: Build Release Solution
137-
run: dotnet build --configuration Release

‎Terminal.sln

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ 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\build-release.yml = .github\workflows\build-release.yml
3435
.github\workflows\check-duplicates.yml = .github\workflows\check-duplicates.yml
3536
GitVersion.yml = GitVersion.yml
3637
.github\workflows\integration-tests.yml = .github\workflows\integration-tests.yml

0 commit comments

Comments
 (0)