From 48d3726797bec59916515904877624351a0d10e0 Mon Sep 17 00:00:00 2001 From: Fabio Di Fabio Date: Wed, 24 Jul 2024 12:24:32 +0200 Subject: [PATCH] Fix and enable unit tests in CI Signed-off-by: Fabio Di Fabio --- .github/workflows/gradle.yml | 4 ++-- sequencer/build.gradle | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 7bebd6d1..63838700 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -28,8 +28,8 @@ jobs: java-version: 21 distribution: temurin - - name: Build without tests - run: ./gradlew build -x test -x spotlessCheck + - name: Build and tests + run: ./gradlew build env: JAVA_OPTS: -Xmx2g -Dorg.gradle.daemon=false diff --git a/sequencer/build.gradle b/sequencer/build.gradle index 4a553358..a4a2cefe 100644 --- a/sequencer/build.gradle +++ b/sequencer/build.gradle @@ -34,13 +34,12 @@ apply from: rootProject.file("gradle/lint.gradle") dependencies { // annotationProcessor generates the file META-INF/services/org.hyperledger.besu.plugin.BesuPlugin annotationProcessor 'com.google.auto.service:auto-service' - compileOnly "${besuArtifactGroup}:evm" compileOnly 'com.google.auto.service:auto-service' compileOnly 'com.google.auto.service:auto-service-annotations' - compileOnly "${besuArtifactGroup}:evm" - compileOnly "${besuArtifactGroup}:plugin-api" - compileOnly "${besuArtifactGroup}:besu-datatypes" + compileOnly "${besuArtifactGroup}:evm:${besuVersion}" + compileOnly "${besuArtifactGroup}:plugin-api:${besuVersion}" + compileOnly "${besuArtifactGroup}:besu-datatypes:${besuVersion}" compileOnly "${besuArtifactGroup}.internal:api:${besuVersion}" compileOnly "${besuArtifactGroup}.internal:core:${besuVersion}" compileOnly "${besuArtifactGroup}.internal:rlp:${besuVersion}" @@ -61,11 +60,12 @@ dependencies { implementation 'org.bouncycastle:bcprov-jdk18on' implementation 'org.hibernate.validator:hibernate-validator' - testImplementation "${besuArtifactGroup}:evm" - testImplementation "${besuArtifactGroup}:besu-datatypes" + testImplementation "${besuArtifactGroup}:evm:${besuVersion}" + testImplementation "${besuArtifactGroup}:plugin-api:${besuVersion}" + testImplementation "${besuArtifactGroup}:besu-datatypes:${besuVersion}" testImplementation "${besuArtifactGroup}.internal:core:${besuVersion}" testImplementation "${besuArtifactGroup}.internal:rlp:${besuVersion}" - testImplementation "${besuArtifactGroup}.internal:core:${besuVersion}" + testImplementation "${besuArtifactGroup}.internal:algorithms:${besuVersion}" } configurations {