GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: initial commit · testlens-app/cli@9160b07

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .gitattributes
  • .github
    • actionlint.yaml
    • actions/open-test-reporting
      • action.yml
    • renovate.json
    • workflows
      • _checks-repository.yml
      • _gradle.yml
      • main.yml
  • .gitignore
  • build.gradle.kts
  • gradle.properties
  • gradlew.bat
  • gradlew
  • gradle
    • config
      • eclipse-formatter.xml
    • java-version.txt
    • libs.versions.toml
    • plugins
      • build.gradle.kts
      • settings.gradle.kts
      • src
        • main/kotlin
          • ProjectExtensions.kt
          • app.testlens.gradle.base.build-parameters.gradle.kts
          • app.testlens.gradle.base.dependency-rules.gradle.kts
          • app.testlens.gradle.base.lifecycle.gradle.kts
          • app.testlens.gradle.check.dependencies.gradle.kts
          • app.testlens.gradle.check.error-prone.gradle.kts
          • app.testlens.gradle.check.format-base.gradle.kts
          • app.testlens.gradle.check.format-gradle.gradle.kts
          • app.testlens.gradle.check.format-java.gradle.kts
          • app.testlens.gradle.check.javac-lint.gradle.kts
          • app.testlens.gradle.component.application-cli.gradle.kts
          • app.testlens.gradle.feature.build-cache.settings.gradle.kts
          • app.testlens.gradle.feature.java-compile.gradle.kts
          • app.testlens.gradle.feature.test.gradle.kts
          • app/testlens/gradle
            • provider
              • LocalPropertiesExtension.kt
            • spotless
              • SortDependenciesStep.kt
            • tasks
              • GenerateModelReflectionConfig.kt
        • test/kotlin/app/testlens/gradle/spotless
          • SortDependenciesStepTest.kt
    • wrapper
      • gradle-wrapper.jar
      • gradle-wrapper.properties
  • settings.gradle.kts
  • src
    • main
      • java
        • app/testlens/cli
          • PrCommand.java
          • Testlens.java
          • package-info.java
          • tui
            • PrDetailsController.java
            • PrDetailsView.java
            • PrFooterView.java
            • PrHeaderView.java
            • PrTestsTableController.java
            • PrTestsTableView.java
            • PrTui.java
            • PrTuiController.java
            • PrTuiUtils.java
            • PrTuiView.java
            • package-info.java
          • util
            • TextDiff.java
            • TimeFormat.java
            • package-info.java
        • module-info.java
      • resources
        • META-INF/native-image/app.testlens/cli
          • resource-config.json
        • version.txt
    • test/java/app/testlens/cli
      • PrCommandTest.java
      • package-info.java
      • tui
        • PrTuiTest.java
      • util
        • TextDiffTest.java
        • TimeFormatTest.java

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.gitattributes‎

Copy file name to clipboard
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
#
4+
# Linux start script should use lf
5+
/gradlew text eol=lf
6+
7+
# These are Windows script files and should use crlf
8+
*.bat text eol=crlf
9+
Collapse file

‎.github/actionlint.yaml‎

Copy file name to clipboard
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
self-hosted-runner:
2+
labels:
3+
- ubicloud-standard-*
Collapse file

‎.github/actions/open-test-reporting/action.yml‎

Copy file name to clipboard
+51Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Create and attach aggregated HTML report
2+
description: Create and attach aggregated HTML report using Open Test Reporting
3+
4+
inputs:
5+
display-name:
6+
description: Display name of the archived report
7+
required: true
8+
default: Test Report
9+
file-name-suffix:
10+
description: Suffix of the HTML file name
11+
required: true
12+
xml-file-pattern:
13+
description: Where to find Open Test Reporting XML files
14+
required: true
15+
default: '**/build/test-results/*/fork-*/open-test-report.xml'
16+
17+
runs:
18+
using: composite
19+
steps:
20+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
21+
with:
22+
name: Gradle ${{ inputs.display-name }}
23+
path: "**/build/reports/tests/**"
24+
if-no-files-found: ignore
25+
- uses: jbangdev/setup-jbang@cc28889678db839e29433f42f9ff25f148b6d8de # main
26+
- id: file-check
27+
shell: bash
28+
run: |
29+
shopt -s globstar
30+
if ls ${{ inputs.xml-file-pattern }} 1> /dev/null 2>&1; then
31+
echo "filesExist=true" >> "$GITHUB_OUTPUT"
32+
else
33+
echo "filesExist=false" >> "$GITHUB_OUTPUT"
34+
fi
35+
- id: generate-html-report
36+
if: steps.file-check.outputs.filesExist == 'true'
37+
shell: bash
38+
run: |
39+
shopt -s globstar
40+
jbang \
41+
org.opentest4j.reporting:open-test-reporting-cli:0.2.5:standalone \
42+
html-report \
43+
--output open-test-report-${{ inputs.file-name-suffix }}.html \
44+
${{ inputs.xml-file-pattern }}
45+
- if: steps.generate-html-report.outcome == 'success'
46+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
47+
with:
48+
name: ${{ inputs.display-name }}
49+
path: open-test-report-${{ inputs.file-name-suffix }}.html
50+
archive: false
51+
if-no-files-found: error
Collapse file

‎.github/renovate.json‎

Copy file name to clipboard
+8Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:best-practices",
5+
":automergeAll",
6+
":semanticCommitTypeAll(chore)"
7+
]
8+
}
Collapse file

‎.github/workflows/_checks-repository.yml‎

Copy file name to clipboard
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Check Git repository
2+
3+
on: [workflow_call]
4+
5+
permissions: {}
6+
7+
jobs:
8+
Lint:
9+
runs-on: ${{ vars.RUNNER_TYPE_REGULAR }}
10+
permissions:
11+
contents: read
12+
pull-requests: read
13+
steps:
14+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
15+
- parallel:
16+
- name: Run commitlint
17+
uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed #v6.2.1
18+
- name: Run actionlint
19+
uses: kjanat/actionlint@08bb2c4f0d039744455b87aef1c647fb8b66d37b # v1.17.0
Collapse file

‎.github/workflows/_gradle.yml‎

Copy file name to clipboard
+77Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Build
2+
3+
on: [workflow_call]
4+
5+
permissions:
6+
contents: read
7+
8+
env:
9+
BUILD_CACHE_ACCESS_KEY: ${{ secrets.HETZNER_STORAGE_ACCESS_KEY_ID }}
10+
BUILD_CACHE_SECRET_KEY: ${{ secrets.HETZNER_STORAGE_SECRET_ACCESS_KEY }}
11+
12+
jobs:
13+
build:
14+
name: Build
15+
runs-on: ${{ vars.RUNNER_TYPE_REGULAR }}
16+
steps:
17+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
18+
with:
19+
fetch-depth: 1
20+
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
21+
with:
22+
distribution: temurin
23+
java-version-file: gradle/java-version.txt
24+
- uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0
25+
with:
26+
build-scan-terms-of-use-url: https://gradle.com/terms-of-service
27+
build-scan-terms-of-use-agree: yes
28+
cache-read-only: false
29+
- uses: testlens-app/setup-testlens@d29a2be31512b3aeda3adcef09fbe0d55af90c51 # v1.9.4
30+
- run: ./gradlew build
31+
- uses: ./.github/actions/open-test-reporting
32+
if: ${{ failure() }}
33+
with:
34+
display-name: Test Report
35+
file-name-suffix: build
36+
37+
graalvm:
38+
name: GraalVM Native Image
39+
needs: build
40+
runs-on: ${{ vars.RUNNER_TYPE_REGULAR }}
41+
steps:
42+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
43+
with:
44+
fetch-depth: 1
45+
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
46+
with:
47+
distribution: graalvm
48+
java-version-file: gradle/java-version.txt
49+
- uses: gradle/actions/setup-gradle@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0
50+
with:
51+
build-scan-terms-of-use-url: https://gradle.com/terms-of-service
52+
build-scan-terms-of-use-agree: yes
53+
- uses: testlens-app/setup-testlens@d29a2be31512b3aeda3adcef09fbe0d55af90c51 # v1.9.4
54+
- run: ./gradlew nativeCompile
55+
- name: Smoke test native image
56+
run: build/native/nativeCompile/testlens --help
57+
58+
dependency-submission:
59+
name: Dependency Submission
60+
needs: build
61+
runs-on: ${{ vars.RUNNER_TYPE_REGULAR }}
62+
if: github.event_name == 'push'
63+
permissions:
64+
contents: write
65+
steps:
66+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
67+
with:
68+
fetch-depth: 1
69+
- uses: actions/setup-java@de7274f081f381c8f8158605e0321c36c376e2e6 # v6.0.1
70+
with:
71+
distribution: temurin
72+
java-version-file: gradle/java-version.txt
73+
- name: Generate and submit dependency graph
74+
uses: gradle/actions/dependency-submission@3f5f9adaf7d9fecd50b5935e54106014257a94e6 # v6.4.0
75+
with:
76+
build-scan-terms-of-use-url: https://gradle.com/terms-of-service
77+
build-scan-terms-of-use-agree: yes
Collapse file

‎.github/workflows/main.yml‎

Copy file name to clipboard
+47Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
# Cancels in-progress runs only for pull requests
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
permissions: {}
15+
16+
jobs:
17+
18+
repo-checks:
19+
name: Repository Checks
20+
if: github.event_name != 'push'
21+
uses: ./.github/workflows/_checks-repository.yml
22+
permissions:
23+
contents: read
24+
pull-requests: read
25+
26+
gradle:
27+
name: Gradle
28+
uses: ./.github/workflows/_gradle.yml
29+
secrets: inherit
30+
permissions:
31+
contents: write
32+
33+
status:
34+
name: Status
35+
needs:
36+
[repo-checks, gradle]
37+
if: always()
38+
runs-on: ${{ vars.RUNNER_TYPE_SMALL }}
39+
steps:
40+
- name: Determine overall status
41+
env:
42+
STATUS: ${{ join(needs.*.result, ',') }}
43+
FAILURE: ${{ contains(join(needs.*.result, ','), 'failure') || contains(join(needs.*.result, ','), 'cancelled') }}
44+
run: |
45+
if [ "$FAILURE" = "true" ]; then
46+
exit 1
47+
fi
Collapse file

‎.gitignore‎

Copy file name to clipboard
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.gradle
2+
.idea
3+
.kotlin
4+
5+
/local.properties
6+
build
Collapse file

‎build.gradle.kts‎

Copy file name to clipboard
+54Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
plugins {
2+
id("app.testlens.gradle.component.application-cli")
3+
}
4+
5+
dependencies {
6+
implementation(libs.diffUtils)
7+
implementation(libs.jackson.annotations)
8+
implementation(libs.jackson.core)
9+
implementation(libs.jackson.databind)
10+
implementation(libs.jakarta.annotation.api)
11+
implementation(libs.picocli)
12+
implementation(libs.tamboui.core)
13+
implementation(libs.tamboui.toolkit)
14+
implementation(libs.tamboui.tui)
15+
implementation(libs.tamboui.widgets)
16+
implementation(platform(libs.jackson.bom))
17+
implementation(platform(libs.tamboui.bom))
18+
compileOnly(libs.jspecify)
19+
runtimeOnly(libs.tamboui.panamaBackend)
20+
annotationProcessor(libs.picocli.codegen)
21+
22+
testImplementation(libs.assertj)
23+
testImplementation(libs.junit.api)
24+
testImplementation(libs.junit.params)
25+
testImplementation(libs.wiremock.core)
26+
testImplementation(libs.wiremock.junit5)
27+
testImplementation(platform(libs.junit.bom))
28+
testImplementation(platform(libs.slf4j.bom))
29+
testImplementation(testFixtures(libs.tamboui.tui))
30+
testRuntimeOnly(libs.slf4j.simple)
31+
testRuntimeOnly(libs.wiremock.httpclient.apache5)
32+
testRuntimeOnly(libs.wiremock.jetty)
33+
testAnnotationProcessor(libs.picocli.codegen)
34+
}
35+
36+
tasks.withType<JavaCompile>().configureEach {
37+
// java-diff-utils only ships an Automatic-Module-Name
38+
options.compilerArgs.add("-Xlint:-requires-automatic")
39+
}
40+
41+
application {
42+
mainModule = "app.testlens.cli"
43+
mainClass = "app.testlens.cli.Testlens"
44+
applicationName = "testlens"
45+
applicationDefaultJvmArgs = listOf("--enable-native-access=dev.tamboui.panama.backend")
46+
}
47+
48+
tasks.test {
49+
systemProperty("org.slf4j.simpleLogger.defaultLogLevel", "ERROR")
50+
}
51+
52+
tasks.build {
53+
dependsOn(gradle.includedBuild("plugins").task(":build"))
54+
}
Collapse file

‎gradle.properties‎

Copy file name to clipboard
+4Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
org.gradle.jvmargs=-Xmx2g -XX:MaxMetaspaceSize=768m -XX:+HeapDumpOnOutOfMemoryError
2+
org.gradle.caching=true
3+
org.gradle.isolated-projects=true
4+
org.gradle.kotlin.dsl.allWarningsAsErrors=true

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.