Skip to content

Commit

Permalink
Faster upload of test reports
Browse files Browse the repository at this point in the history
  • Loading branch information
oxisto committed Jul 19, 2023
1 parent 9527c14 commit 7a276f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1,205 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,12 +137,16 @@ jobs:
VERSION: ${{ env.version }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Prepare test and coverage reports
if: ${{ always() }}
run: |
zip reports.zip **/build/reports/**
- name: Archive test and coverage reports
if: ${{ always() }}
uses: actions/upload-artifact@v3
with:
name: reports
path: "**/build/reports"
path: reports.zip
- name: Download old dokka versions
run: |
# make sure the previousDocs folder exists
Expand Down
13 changes: 0 additions & 13 deletions buildSrc/src/main/kotlin/cpg.formatting-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ plugins {
tasks.withType<KotlinCompile> {
dependsOn("spotlessApply")
}
tasks.withType<JavaCompile> {
dependsOn("spotlessApply")
}

val headerWithStars = """/*
* Copyright (c) ${"$"}YEAR, Fraunhofer AISEC. All rights reserved.
Expand Down Expand Up @@ -92,16 +89,6 @@ val headerWithHashes = """#
"""

spotless {
java {
targetExclude(
fileTree(project.projectDir) {
include("build/generated-src/**")
}
)
googleJavaFormat("1.15.0")
licenseHeader(headerWithStars).yearSeparator(" - ")
}

kotlin {
ktfmt().kotlinlangStyle()
licenseHeader(headerWithStars).yearSeparator(" - ")
Expand Down
Loading

0 comments on commit 7a276f7

Please sign in to comment.