Skip to content

Commit 9928b1e

Browse files
committed
Merge branch 'v1_develop' into v1_18_0
2 parents 4dbcfa3 + a80e24a commit 9928b1e

File tree

2 files changed

+34
-27
lines changed

2 files changed

+34
-27
lines changed

.github/workflows/dotnet-core.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,40 @@ on:
99
branches: [ v1_release, v1_develop ]
1010
paths-ignore:
1111
- '**.md'
12-
1312
jobs:
14-
build:
15-
runs-on: ubuntu-latest
13+
non_parallel_unittests:
14+
name: Non-Parallel Unit Tests
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
# Turn off fail-fast to let all runners run even if there are errors
18+
fail-fast: true
19+
matrix:
20+
os: [ ubuntu-latest ]
21+
1622
timeout-minutes: 10
1723
steps:
18-
- uses: actions/checkout@v4
24+
25+
- name: Checkout code
26+
uses: actions/checkout@v4
1927

2028
- name: Setup .NET Core
2129
uses: actions/setup-dotnet@v4
2230
with:
23-
dotnet-version: 7.0
31+
dotnet-version: 8.x
2432
dotnet-quality: 'ga'
2533

2634
- name: Install dependencies
2735
run: |
2836
dotnet restore
2937
30-
- name: Build Debug
31-
run: |
32-
dotnet build --configuration Debug --no-restore
38+
- name: Build Solution Debug
39+
run: dotnet build --configuration Debug --no-restore
3340

3441
- name: Test
3542
run: |
36-
sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json
37-
dotnet test --no-restore --verbosity normal #--collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings
43+
#sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json
44+
dotnet test --no-restore --verbosity normal
45+
#--collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings
3846
#mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/
3947
4048
# Note: this step is currently not writing to the gist for some reason

.github/workflows/publish.yml

+16-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Terminal.Gui
22

33
on:
44
push:
5-
branches: [ v1_release, v1_develop, v2_release, v2_develop ]
5+
branches: [ v1_release, v1_develop ]
66
tags:
77
- v*
88
paths-ignore:
@@ -18,35 +18,34 @@ jobs:
1818
with:
1919
fetch-depth: 0 # fetch-depth is needed for GitVersion
2020

21-
- name: Install GitVersion
22-
uses: gittools/actions/gitversion/setup@v1
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: Install GitVersion
28+
uses: gittools/actions/gitversion/[email protected]
2329
with:
24-
versionSpec: '5.x'
25-
includePrerelease: true
30+
versionSpec: '6.0.x'
2631

2732
- name: Determine Version
28-
uses: gittools/actions/gitversion/execute@v1
33+
uses: gittools/actions/gitversion/execute@v3.1.11
2934
with:
3035
useConfigFile: true
31-
#additionalArguments: /b develop
36+
updateAssemblyInfo: true
3237
id: gitversion # step id used as reference for output values
3338

34-
- name: Setup dotnet
35-
uses: actions/setup-dotnet@v4
36-
with:
37-
dotnet-version: 8.0
38-
dotnet-quality: 'ga'
39-
4039
- name: Install dependencies
4140
run: dotnet restore
4241

4342
- name: Build Release
4443
run: |
45-
dotnet-gitversion /updateprojectfiles
46-
dotnet build --no-restore -c Release
44+
dotnet build Terminal.Gui/Terminal.Gui.csproj --no-incremental --nologo --force --configuration Release
45+
dotnet test Terminal.Gui/Terminal.Gui.csproj --configuration Release
4746
4847
- name: Pack
49-
run: dotnet pack -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'
48+
run: dotnet pack Terminal.Gui/Terminal.Gui.csproj -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}'
5049

5150
# - name: Test to generate Code Coverage Report
5251
# run: |
@@ -71,4 +70,4 @@ jobs:
7170
# echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}"
7271

7372
- name: Publish to NuGet.org
74-
run: dotnet nuget push Terminal.Gui/bin/Release/Terminal.Gui.${{ steps.gitversion.outputs.SemVer }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }}
73+
run: dotnet nuget push Terminal.Gui/bin/Release/Terminal.Gui.${{ steps.gitversion.outputs.SemVer }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)