|
1 |
| -name: Build & Test Terminal.Gui with .NET Core |
| 1 | +name: Build & Run Unit Tests |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
@@ -61,11 +61,11 @@ jobs:
|
61 | 61 | shell: bash
|
62 | 62 | run: echo "{VSTEST_DUMP_PATH}={logs/${{ runner.os }}/}" >> $GITHUB_ENV
|
63 | 63 |
|
64 |
| - - name: Test |
| 64 | + - name: Run UnitTests |
65 | 65 | run: |
|
66 |
| - dotnet test --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always |
| 66 | + dotnet test UnitTests --verbosity normal --collect:"XPlat Code Coverage" --settings UnitTests/coverlet.runsettings --diag:logs/${{ runner.os }}/logs.txt --blame --blame-crash --blame-hang --blame-hang-timeout 60s --blame-crash-collect-always |
67 | 67 |
|
68 |
| - # mv -v UnitTests/TestResults/*/*.* UnitTests/TestResults/ |
| 68 | + # mv -v UnitTests/TestResults/*/*.* TestResults/UnitTests/ |
69 | 69 |
|
70 | 70 | - name: Upload Test Logs
|
71 | 71 | if: always()
|
|
74 | 74 | name: test-logs-${{ runner.os }}
|
75 | 75 | path: |
|
76 | 76 | logs/
|
77 |
| - UnitTests/TestResults/ |
| 77 | + TestResults/UnitTests/ |
78 | 78 |
|
79 | 79 |
|
80 | 80 | build_release:
|
|
98 | 98 |
|
99 | 99 | - name: Build Release Solution
|
100 | 100 | run: dotnet build --configuration Release
|
101 |
| - |
102 |
| - |
103 |
| - # Note: this step is currently not writing to the gist for some reason |
104 |
| - # - name: Create Test Coverage Badge |
105 |
| - |
106 |
| - # id: create_coverage_badge |
107 |
| - # with: |
108 |
| - # label: Unit Test Coverage |
109 |
| - # color: brightgreen |
110 |
| - # path: UnitTests/TestResults/coverage.opencover.xml |
111 |
| - # gist-filename: code-coverage.json |
112 |
| - # # https://gist.github.com/migueldeicaza/90ef67a684cb71db1817921a970f8d27 |
113 |
| - # gist-id: 90ef67a684cb71db1817921a970f8d27 |
114 |
| - # gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }} |
115 |
| - |
116 |
| - # - name: Print Code Coverage |
117 |
| - # run: | |
118 |
| - # echo "Code coverage percentage: ${{steps.create_coverage_badge.outputs.percentage}}%" |
119 |
| - # echo "Badge data: ${{steps.create_coverage_badge.outputs.badge}}" |
0 commit comments