-
Notifications
You must be signed in to change notification settings - Fork 689
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'v1_develop' into v1_alt-key-on-toplevel-with-menubar-fi…
…x_2810
- Loading branch information
Showing
11 changed files
with
118 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
name: Publish Terminal.Gui | ||
|
||
on: | ||
push: | ||
branches: [ main, develop, v2_release, v2_develop ] | ||
tags: | ||
- v* | ||
paths-ignore: | ||
- '**.md' | ||
|
||
jobs: | ||
|
||
publish: | ||
name: Build and Publish to Nuget.org | ||
runs-on: ubuntu-latest | ||
|
@@ -24,11 +27,6 @@ jobs: | |
uses: gittools/actions/gitversion/execute@v0 | ||
id: gitversion # step id used as reference for output values | ||
|
||
- name: Display GitVersion outputs | ||
run: | | ||
echo "Version: ${{ steps.gitversion.outputs.SemVer }}" | ||
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.CommitsSinceVersionSource }}" | ||
- name: Setup dotnet | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
|
@@ -45,34 +43,27 @@ jobs: | |
- name: Pack | ||
run: dotnet pack -c Release --include-symbols -p:Version='${{ steps.gitversion.outputs.SemVer }}' | ||
|
||
- name: Test to generate Code Coverage Report | ||
run: | | ||
sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json | ||
dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings | ||
mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/ | ||
# - name: Test to generate Code Coverage Report | ||
# run: | | ||
# sed -i 's/"stopOnFail": false/"stopOnFail": true/g' UnitTests/xunit.runner.json | ||
# dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings | ||
# mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/ | ||
|
||
- name: Create Test Coverage Badge | ||
uses: simon-k/[email protected] | ||
id: create_coverage_badge | ||
with: | ||
label: Unit Test Coverage | ||
color: brightgreen | ||
path: UnitTests/TestResults/coverage.opencover.xml | ||
gist-filename: code-coverage.json | ||
# https://gist.github.com/migueldeicaza/90ef67a684cb71db1817921a970f8d27 | ||
gist-id: 90ef67a684cb71db1817921a970f8d27 | ||
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} | ||
# - name: Create Test Coverage Badge | ||
# uses: simon-k/[email protected] | ||
# id: create_coverage_badge | ||
# with: | ||
# label: Unit Test Coverage | ||
# color: brightgreen | ||
# path: UnitTests/TestResults/coverage.opencover.xml | ||
# gist-filename: code-coverage.json | ||
# gist-id: 90ef67a684cb71db1817921a970f8d27 | ||
# gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} | ||
|
||
- name: Print Code Coverage | ||
run: | | ||
echo "Code coverage percentage: ${{steps.create_coverage_badge.outputs.percentage}}%" | ||
echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}" | ||
# - name: Print Code Coverage | ||
# run: | | ||
# echo "Code coverage percentage: ${{steps.create_coverage_badge.outputs.percentage}}%" | ||
# echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}" | ||
|
||
#- name: Prep GitHub Packages | ||
# run: dotnet nuget add source --username tig --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/tig/index.json" | ||
|
||
#- name: Publish to GitHub packages | ||
# run: dotnet nuget push NStack/bin/Release/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" | ||
|
||
- name: Publish to NuGet.org | ||
run: dotnet nuget push Terminal.Gui/bin/Release/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json | ||
run: dotnet nuget push Terminal.Gui/bin/Release/Terminal.Gui.${{ steps.gitversion.outputs.SemVer }}.nupkg --api-key ${{ secrets.NUGET_API_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"sdk":{ | ||
"version":"7.0.100", | ||
"rollForward":"latestMajor" | ||
"version":"7.0.200", | ||
"rollForward":"latestMinor" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<config> | ||
<add key="defaultPushSource" value="https://api.nuget.org/v3/index.json" /> | ||
</config> | ||
<packageSources> | ||
|
||
<!--To inherit the global NuGet package sources remove the <clear/> line below --> | ||
<clear /> | ||
<add key="nuget" value="https://api.nuget.org/v3/index.json" /> | ||
</packageSources> | ||
</configuration> |