-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #295 from gui-cs/v2_true_color
Designer Alpha Release
- Loading branch information
Showing
7 changed files
with
319 additions
and
158 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 |
---|---|---|
|
@@ -4,19 +4,22 @@ on: push | |
|
||
jobs: | ||
package: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: cd src && dotnet build | ||
|
||
- name: Test | ||
run: | | ||
cd tests && dotnet test --configuration Debug --verbosity normal --collect:'XPlat Code Coverage' --settings coverlet.runsettings | ||
- name: Move test results to accessible directory | ||
run: | | ||
mkdir TestResults | ||
mv -v --backup=numbered tests/TestResults/*/*.* TestResults/ | ||
# Note: this step is currently not writing to the gist for some reason | ||
mkdir -p TestResults | ||
find tests/TestResults -type f -name "*.xml" -exec mv -v --backup=numbered {} TestResults/ \; | ||
- name: Create Test Coverage Badge | ||
uses: simon-k/[email protected] | ||
id: create_coverage_badge | ||
|
@@ -33,8 +36,10 @@ jobs: | |
run: | | ||
echo "Code coverage percentage: ${{steps.create_coverage_badge.outputs.percentage}}%" | ||
echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}" | ||
- name: Pack | ||
run: cd src && dotnet pack | ||
- name: Publish to Nuget | ||
run: cd src && dotnet pack --configuration Debug --output ./nupkg | ||
|
||
- name: Publish to NuGet | ||
if: contains(github.ref, 'refs/tags/v') | ||
run: dotnet nuget push ./src/nupkg/TerminalGuiDesigner.$(fgrep \<Version\> ./src/TerminalGuiDesigner.csproj | grep -oEi '[-0-9.rc]{5,}').nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json | ||
run: dotnet nuget push ./src/nupkg/*.nupkg --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json |
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
Oops, something went wrong.