Skip to content

Commit

Permalink
Get git clone working from workflow
Browse files Browse the repository at this point in the history
cloning from unauthenticated account.
  • Loading branch information
big-andy-coates committed Oct 4, 2023
1 parent 6d86688 commit c13a702
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-func-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
with:
gradle-home-cache-cleanup: true
- name: Run
run: ./gradlew runFunctionalTests
run: ./gradlew -q runFunctionalTests >> $GITHUB_STEP_SUMMARY
2 changes: 1 addition & 1 deletion .github/workflows/run-perf-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ jobs:
with:
gradle-home-cache-cleanup: true
- name: Run
run: ./gradlew runBenchmarks
run: ./gradlew -q runBenchmarks >> $GITHUB_STEP_SUMMARY
8 changes: 3 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ dependencies {

implementation("org.leadpony.justify:justify:3.1.0")

implementation("org.apache.logging.log4j:log4j-core:$log4jVersion");
implementation("org.apache.logging.log4j:log4j-core:$log4jVersion")
runtimeOnly("org.apache.logging.log4j:log4j-slf4j2-impl:$log4jVersion")

testImplementation("org.creekservice:creek-test-hamcrest:$creekVersion")
Expand All @@ -86,7 +86,6 @@ dependencies {
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
}


tasks.withType<JavaCompile> {
options.compilerArgs.add("-Xlint:all,-serial,-requires-automatic,-requires-transitive-automatic,-module,-processing")
}
Expand All @@ -101,7 +100,7 @@ val cloneTask = tasks.register("clone-json-schema-test-suite") {
doLast {
org.ajoberstar.grgit.Grgit.clone {
dir = jsonSchemaTestSuiteDir.get().asFile
uri = "git@github.com:json-schema-org/JSON-Schema-Test-Suite.git"
uri = "https://github.com/json-schema-org/JSON-Schema-Test-Suite.git"
}
}
}
Expand All @@ -110,7 +109,6 @@ val pullTask = tasks.register("pull-json-schema-test-suite") {
dependsOn(cloneTask)

doLast {
println("pulling.........")
org.ajoberstar.grgit.Grgit.open {
dir = jsonSchemaTestSuiteDir.get().asFile
}.pull()
Expand All @@ -120,7 +118,7 @@ val pullTask = tasks.register("pull-json-schema-test-suite") {
val runFunctionalTests = tasks.register<JavaExec>("runFunctionalTests") {
classpath = sourceSets.main.get().runtimeClasspath
mainClass.set("org.creekservice.kafka.test.perf.testsuite.JsonTestSuiteMain")
args = listOf(jsonSchemaTestSuiteDir.get().asFile.absolutePath);
args = listOf(jsonSchemaTestSuiteDir.get().asFile.absolutePath)
dependsOn(pullTask)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,14 @@
import org.creekservice.kafka.test.perf.testsuite.JsonSchemaTestSuite.TestPredicate;
import org.creekservice.kafka.test.perf.testsuite.output.PerDraftSummary;
import org.creekservice.kafka.test.perf.testsuite.output.Summary;
import org.creekservice.kafka.test.perf.util.Logging;

public final class JsonTestSuiteMain {

static {
Logging.disable();
}

private static final List<SerdeImpl> IMPLS =
List.of(
new EveritSerde(),
Expand Down

0 comments on commit c13a702

Please sign in to comment.