Unverified Commit b5a08466 authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Add kotlin-dsl sample to prod workflow tests

parent 4032438d
Loading
Loading
Loading
Loading
+26
Changes for .github/workflows/prod.yml: 26 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -120,6 +120,32 @@ jobs:
        arguments: test --configuration-cache
        gradle-cache-enabled: read-only

  # Use kotlin-dsl project to verify caching of generated jars and compiled scripts
  # At this stage there is no automated verification of this caching: eyeball the build scan to verify
  seed-kotlin-dsl-build:
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Build kotlin-dsl project
      uses: ./
      with:
        build-root-directory: __tests__/samples/kotlin-dsl
        arguments: test

  verify-kotlin-dsl-build:
    needs: seed-kotlin-dsl-build
    runs-on: ubuntu-latest
    steps:
    - name: Checkout sources
      uses: actions/checkout@v2
    - name: Build kotlin-dsl project
      uses: ./
      with:
        build-root-directory: __tests__/samples/kotlin-dsl
        arguments: test
        gradle-cache-enabled: read-only

  # These build invocations are informational only, and are expected to fail
  failures: 
    needs: seed-build
+6
Changes for __tests__/samples/kotlin-dsl/.gitattributes: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
#
# https://help.github.com/articles/dealing-with-line-endings/
#
# These are explicitly windows files and should use crlf
*.bat           text eol=crlf
+5
Changes for __tests__/samples/kotlin-dsl/.gitignore: 5 added lines, 0 removed lines.
Original line number Diff line number Diff line
# Ignore Gradle project-specific cache directory
.gradle

# Ignore Gradle build output directory
build
+18
Changes for __tests__/samples/kotlin-dsl/build.gradle.kts: 18 added lines, 0 removed lines.
Original line number Diff line number Diff line
plugins {
    `java-library`
}

repositories {
    mavenCentral()
}

dependencies {
    api("org.apache.commons:commons-math3:3.6.1")
    implementation("com.google.guava:guava:30.1.1-jre")

    testImplementation("org.junit.jupiter:junit-jupiter:5.7.2")
}

tasks.test {
    useJUnitPlatform()
}
+1
Changes for __tests__/samples/kotlin-dsl/gradle.properties: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
org.gradle.caching=true
Loading