diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index e86f56da5..be451eb62 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -7,6 +7,7 @@ on: - '**' tags: - '!**' + workflow_dispatch: jobs: build: @@ -39,6 +40,12 @@ jobs: - name: Build with Gradle run: gradle clean build -PjavacRelease=${{ matrix.java }} + - name: Publish Test Report + uses: mikepenz/action-junit-report@v6 + if: success() || failure() # always run even if the previous step fails + with: + report_paths: '**/build/test-results/test/TEST-*.xml' + - name: SHA256 if: matrix.upload run: shasum -a 256 build/libs/*.jar @@ -52,7 +59,7 @@ jobs: - name: create pre-release id: create-pre-release - if: matrix.upload + if: matrix.upload && github.ref == 'refs/heads/main' uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FapwizRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FapwizRipperTest.java index 3b3c9d2db..eb8865ca2 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FapwizRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FapwizRipperTest.java @@ -50,6 +50,7 @@ public void testGetNextPage_HasNextPage() throws IOException, URISyntaxException } @Test + @Tag("flaky") // Seems to be failing in macOS CI public void testRipPost() throws IOException, URISyntaxException { URL url = new URI("https://fapwiz.com/petiteasiantravels/riding-at-9-months-pregnant/").toURL(); FapwizRipper ripper = new FapwizRipper(url); @@ -57,6 +58,7 @@ public void testRipPost() throws IOException, URISyntaxException { } @Test + @Tag("flaky") // Seems to be failing in macOS CI public void testRipPostWithNumbersInUsername1() throws IOException, URISyntaxException { URL url = new URI("https://fapwiz.com/desperate_bug_7776/lets-be-friends-that-secretly-fuck-thanks/").toURL(); FapwizRipper ripper = new FapwizRipper(url); @@ -64,6 +66,7 @@ public void testRipPostWithNumbersInUsername1() throws IOException, URISyntaxExc } @Test + @Tag("flaky") // Seems to be failing in macOS CI public void testRipPostWithEmojiInShortUrl() throws IOException, URISyntaxException { URL url = new URI("https://fapwiz.com/miaipanema/my-grip-needs-a-name-%f0%9f%a4%ad%f0%9f%91%87%f0%9f%8f%bc/") .toURL(); @@ -82,6 +85,7 @@ public void testRipPostWithEmojiInLongUrlAtEnd() throws IOException, URISyntaxEx } @Test + @Tag("flaky") // Seems to be failing in macOS CI public void testRipPostWithEmojiInLongUrlInTheMiddle() throws IOException, URISyntaxException { URL url = new URI( "https://fapwiz.com/miaipanema/new-pov-couch-sex-with-perfect-cumshot-on-my-ass-%f0%9f%92%a6-you-know-where-to-get-it-%f0%9f%94%97%f0%9f%92%96/") diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FreeComicOnlineRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FreeComicOnlineRipperTest.java index e33b9de25..1628e10d5 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FreeComicOnlineRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/FreeComicOnlineRipperTest.java @@ -12,7 +12,7 @@ public class FreeComicOnlineRipperTest extends RippersTest { @Test public void testFreeComicOnlineChapterAlbum() throws IOException, URISyntaxException { FreeComicOnlineRipper ripper = new FreeComicOnlineRipper( - new URI("https://freecomiconline.me/comic/perfect-half-hentai0003/chapter-01/").toURL()); + new URI("https://freecomiconline.me/comic/dungeon-architect/chapter-01/").toURL()); testRipper(ripper); } } diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/HentaiimageRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/HentaiimageRipperTest.java index e5a8eeabc..c9d0bcbcf 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/HentaiimageRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/HentaiimageRipperTest.java @@ -4,12 +4,14 @@ import java.net.URI; import java.net.URISyntaxException; +import org.junit.jupiter.api.Tag; import org.junit.jupiter.api.Test; import com.rarchives.ripme.ripper.rippers.HentaiimageRipper; public class HentaiimageRipperTest extends RippersTest { @Test + @Tag("flaky") // Seems to be failing in macOS CI public void testHentaifoundryRip() throws IOException, URISyntaxException { HentaiimageRipper ripper = new HentaiimageRipper( new URI("https://hentai-img-xxx.com/image/afrobull-gerudo-ongoing-12/").toURL()); diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/RedgifsRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/RedgifsRipperTest.java index 3ef0759c6..4ff00f091 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/RedgifsRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/RedgifsRipperTest.java @@ -53,7 +53,7 @@ public void testRedgifsSearch() throws IOException, URISyntaxException { */ @Test public void testRedgifsTags() throws IOException, URISyntaxException { - RedgifsRipper ripper = new RedgifsRipper(new URI("https://www.redgifs.com/gifs/animation,sfw,funny?order=best&tab=gifs").toURL()); + RedgifsRipper ripper = new RedgifsRipper(new URI("https://www.redgifs.com/gifs/animation,sfw,funny?order=latest&tab=gifs").toURL()); testRipper(ripper); }