Skip to content

Commit

Permalink
test: Added test-report uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Ruaux committed May 26, 2023
1 parent be05479 commit 059a242
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/step-jlink.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,15 @@ jobs:
echo ${{ inputs.project-version }} > VERSION
- name: Build
run: ./gradlew -Prelease=true -PreproducibleBuild=true build -S
run: ./gradlew -Prelease=true -PreproducibleBuild=true build aggregateTestReports -S

- name: Upload test reports
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-reports
path: |
build/reports/aggregate-tests/
- name: Jlink
uses: jreleaser/release-action@v2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,12 @@ public abstract class AbstractRiotTests extends AbstractTestBase {

private final Logger log = LoggerFactory.getLogger(getClass());


public static final String BEERS_JSON_URL = "https://storage.googleapis.com/jrx/beers.json";
public static final int BEER_CSV_COUNT = 2410;
public static final int BEER_JSON_COUNT = 216;
private static final Duration IDLE_TIMEOUT = Duration.ofSeconds(1);
private static final Duration COMPARE_TIMEOUT = Duration.ofSeconds(3);

protected static String name(Map<String, String> beer) {
return beer.get("name");
Expand Down Expand Up @@ -735,7 +737,7 @@ void hyperLogLog() throws Throwable {
}

private void awaitCompare() {
Awaitility.await().timeout(Duration.ofSeconds(1)).until(this::compare);
Awaitility.await().timeout(COMPARE_TIMEOUT).until(this::compare);
}

@Test
Expand Down

0 comments on commit 059a242

Please sign in to comment.