Skip to content

Commit c68ade5

Browse files
committed
Add env directory to publish cover coverage action
1 parent 77911e2 commit c68ade5

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

.github/workflows/ci-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,17 @@ jobs:
100100
toolpath: "reportgeneratortool"
101101
license: ${{ secrets.REPORT_GENERATOR_LICENSE }}
102102

103+
- name: Upload Code Coverage Results
104+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
105+
with:
106+
name: coverage-results
107+
path: ${{ env.COVERAGE_REPORT }}
108+
retention-days: 5
109+
103110
- name: Publish Code Coverage Report
104111
uses: irongut/CodeCoverageSummary@51cc3a756ddcd398d447c044c02cb6aa83fdae95 # v1.3.0
105112
with:
106-
filename: "Cobertura.xml"
113+
filename: "{{env.COVERAGE_REPORT}}/Cobertura.xml"
107114
badge: true
108115
fail_below_min: false # just informative for now
109116
format: markdown
@@ -113,13 +120,6 @@ jobs:
113120
output: both
114121
thresholds: "10 30"
115122

116-
- name: Upload Code Coverage Results
117-
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
118-
with:
119-
name: coverage-results
120-
path: ${{ env.COVERAGE_REPORT }}
121-
retention-days: 5
122-
123123
- name: Add coverage to build summary
124124
shell: bash
125125
run: cat ${COVERAGE_REPORT}/SummaryGithub.md >> $GITHUB_STEP_SUMMARY

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<Company>idunno.org</Company>
1616
<Authors>Barry Dorrans</Authors>
17-
<Copyright>(c) 2024 Barry Dorrans</Copyright>
17+
<Copyright>(c) 2024-2025 Barry Dorrans</Copyright>
1818
</PropertyGroup>
1919

2020
<PropertyGroup>

samples/Samples.ConsoleShell/Program.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
using idunno.AtProto;
1111
using idunno.Bluesky;
12-
using idunno.Bluesky.Feed;
1312

1413
namespace Samples.ConsoleShell
1514
{
@@ -34,7 +33,7 @@ static async Task PerformOperations(string? userHandle, string? password, string
3433
ArgumentException.ThrowIfNullOrEmpty(password);
3534

3635
// Uncomment the next line to route all requests through Fiddler Everywhere
37-
// proxyUri = new Uri("http://localhost:8866");
36+
proxyUri = new Uri("http://localhost:8866");
3837

3938
// Uncomment the next line to route all requests through Fiddler Classic
4039
// proxyUri = new Uri("http://localhost:8888");
@@ -106,6 +105,11 @@ static async Task PerformOperations(string? userHandle, string? password, string
106105
}
107106
// END-AUTHENTICATION
108107

108+
var getPostThreadResult = await agent.GetPostThread("at://did:plc:oisofpd7lj26yvgiivf3lxsi/app.bsky.feed.post/3ltv6ettzxc2j", cancellationToken: cancellationToken);
109+
getPostThreadResult.EnsureSucceeded();
110+
111+
112+
109113
var getPostResult = await agent.GetPost(new AtUri("at://did:plc:oisofpd7lj26yvgiivf3lxsi/app.bsky.feed.post/3ltv6ettzxc2j"), cancellationToken: cancellationToken);
110114
getPostResult.EnsureSucceeded();
111115

0 commit comments

Comments
 (0)