File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525@file:Repository(" https://bindings.krzeminski.it/" )
2626@file:DependsOn(" actions:checkout___major:[v6,v7-alpha)" )
2727@file:DependsOn(" codecov:codecov-action___major:[v5,v6-alpha)" )
28+ @file:DependsOn(" testlens-app:setup-testlens___major:[v1,v2-alpha)" )
2829
2930import io.github.typesafegithub.workflows.actions.actions.Checkout
3031import io.github.typesafegithub.workflows.actions.actions.Checkout.FetchDepth
3132import io.github.typesafegithub.workflows.actions.codecov.CodecovAction_Untyped
33+ import io.github.typesafegithub.workflows.actions.testlensapp.SetupTestlens
3234import io.github.typesafegithub.workflows.domain.Concurrency
3335import io.github.typesafegithub.workflows.domain.RunnerType
3436import io.github.typesafegithub.workflows.domain.RunnerType.UbuntuLatest
@@ -113,6 +115,11 @@ workflow(
113115 additionalJavaVersion = expr(Matrix .javaVersion)
114116 )
115117 )
118+ uses(
119+ name = " Set up TestLens" ,
120+ action = SetupTestlens (),
121+ condition = " ${github.event_name} == 'pull_request'"
122+ )
116123 run (
117124 name = " Build Spock" ,
118125 command = listOf (
Original file line number Diff line number Diff line change @@ -115,11 +115,15 @@ jobs:
115115 with :
116116 additional-java-version : ' ${{ matrix.java }}'
117117 - id : ' step-2'
118+ name : ' Set up TestLens'
119+ uses : ' testlens-app/setup-testlens@v1'
120+ if : ' github.event_name == '' pull_request'' '
121+ - id : ' step-3'
118122 name : ' Build Spock'
119123 env :
120124 DEVELOCITY_ACCESS_KEY : ' ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}'
121125 run : ' ./gradlew --stacktrace ghActionsBuild "-Dvariant=${{ matrix.variant }}" "-DjavaVersion=${{ matrix.java }}"'
122- - id : ' step-3 '
126+ - id : ' step-4 '
123127 name : ' Upload to Codecov.io'
124128 uses : ' codecov/codecov-action@v5'
125129 with :
You can’t perform that action at this time.
0 commit comments