Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 2 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,12 @@ jobs:
run: |
dotnet new tool-manifest
dotnet tool install dotnet-reportgenerator-globaltool
dotnet tool install dotnet-sonarscanner

- name: Restore
run: dotnet restore "${{ env.Solution }}"

- name: Build and Test with SonarQube
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Build and Test
run: |
dotnet tool run dotnet-sonarscanner begin `
/k:"thorstenalpers_CleanMyPosts" `
/o:"thorstenalpers" `
/d:sonar.token="${{ secrets.SONAR_TOKEN }}" `
/d:sonar.host.url="https://sonarcloud.io" `
/d:sonar.sources="src" `
/d:sonar.tests="src/Tests" `
/d:sonar.test.inclusions="**/*Tests.cs" `
/d:sonar.coverageReportPaths="TestResults/Reports/SonarQube.xml"

dotnet build "${{ env.Solution }}" --configuration Release --no-restore

dotnet test "${{ env.Test_Project }}" `
Expand All @@ -61,9 +48,7 @@ jobs:
dotnet tool run reportgenerator `
-reports:TestResults/**/coverage.cobertura.xml `
-targetdir:TestResults/Reports `
-reporttypes:"Html;lcov;SonarQube;Cobertura" `

dotnet tool run dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
-reporttypes:"Html;lcov;Cobertura" `

- name: Upload Test Coverage Report
uses: actions/upload-artifact@v4
Expand Down
9 changes: 5 additions & 4 deletions release-notes/v1.0.3.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### What's Changed

* Fix: Resolved issue where cleaning actions failed on non-English operating systems.
* Improvement: Added retry logic (up to 3 attempts) for deleting posts, likes, or followings when initially not found.
<h3>What's Changed</h3>
<ul>
<li><strong>Fix:</strong> Resolved issue where cleaning actions failed on non-English operating systems.</li>
<li><strong>Improvement:</strong> Added retry logic (up to 3 attempts) for deleting posts, likes, or followings when initially not found.</li>
</ul>
4 changes: 2 additions & 2 deletions src/Tests/Services/XScriptServiceTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task ShowLikesAsync_NavigatesToCorrectUrl()
var task = _service.ShowLikesAsync();
await Task.Delay(10);

Assert.Contains("x.com/testuser/likes", _webViewHostServiceMock.Object.Source.ToString());
Assert.Contains("/likes", _webViewHostServiceMock.Object.Source.ToString());
}

[Fact]
Expand All @@ -73,7 +73,7 @@ public async Task ShowFollowingAsync_NavigatesToCorrectUrl()
var task = _service.ShowFollowingAsync();
await Task.Delay(10);

Assert.Contains("x.com/testuser/following", _webViewHostServiceMock.Object.Source.ToString());
Assert.Contains("following", _webViewHostServiceMock.Object.Source.ToString());
}

[Fact]
Expand Down