Skip to content

Commit f68ac73

Browse files
authored
Skip running tests in build step (#2651)
1 parent 96115ac commit f68ac73

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build-common.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
cache-read-only: ${{ inputs.cache-read-only }}
6060

6161
- name: Build
62-
run: ./gradlew build -x spotlessCheck -x test ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
62+
run: ./gradlew build -x spotlessCheck -PskipTests=true ${{ inputs.no-build-cache && '--no-build-cache' || '' }}
6363
env:
6464
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
6565
GITHUB_TOKEN: ${{ github.token }}

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,11 @@ nexusPublishing {
3535
}
3636

3737
description = "OpenTelemetry Contrib libraries and utilities for the JVM"
38+
39+
if (project.findProperty("skipTests") as String? == "true") {
40+
subprojects {
41+
tasks.withType<Test>().configureEach {
42+
enabled = false
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)