diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 624b46b..44a36e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }}" ` @@ -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 diff --git a/release-notes/v1.0.3.md b/release-notes/v1.0.3.md index ff6a1a9..5a54c99 100644 --- a/release-notes/v1.0.3.md +++ b/release-notes/v1.0.3.md @@ -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. +

What's Changed

+ diff --git a/src/Tests/Services/XScriptServiceTests.cs b/src/Tests/Services/XScriptServiceTests.cs index 10dd417..ee17325 100644 --- a/src/Tests/Services/XScriptServiceTests.cs +++ b/src/Tests/Services/XScriptServiceTests.cs @@ -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] @@ -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]