Skip to content

Commit ff15724

Browse files
authored
Enable TestLens (#2314)
This adds the [testlens-app/setup-testlens](https://github.com/marketplace/actions/setup-testlens) action to all workflows running tests. The app posts a summary of all test failures as a PR comment and provides means to mute unrelated test failures and faster reruns. For more information, please refer to the [announcement](https://testlens.app/blog/2026/02/04/testlens-private-beta-launch) on our website.
1 parent 23858ab commit ff15724

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/branches-and-prs.main.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
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

2930
import io.github.typesafegithub.workflows.actions.actions.Checkout
3031
import io.github.typesafegithub.workflows.actions.actions.Checkout.FetchDepth
3132
import io.github.typesafegithub.workflows.actions.codecov.CodecovAction_Untyped
33+
import io.github.typesafegithub.workflows.actions.testlensapp.SetupTestlens
3234
import io.github.typesafegithub.workflows.domain.Concurrency
3335
import io.github.typesafegithub.workflows.domain.RunnerType
3436
import 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(

.github/workflows/branches-and-prs.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)