Skip to content

Commit

Permalink
Store test results instead of using --info log
Browse files Browse the repository at this point in the history
  • Loading branch information
oehme committed Nov 14, 2020
1 parent cc85945 commit 75358e7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 7 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
build:
name: "Build"
name: Build
runs-on: ubuntu-latest

steps:
Expand All @@ -18,19 +18,33 @@ jobs:
with:
java-version: 1.8
- id: get_version
name: "Get Version"
name: Get Version
uses: battila7/get-version-action@v2
- name: "Build"
- name: Build
uses: eskatos/gradle-command-action@v1
with:
arguments: build --info
arguments: build
dependencies-cache-enabled: true
- name: Release on Tag
- name: Release on tag
if: startsWith(github.ref, 'refs/tags/v')
uses: eskatos/gradle-command-action@v1
env:
ORG_GRADLE_PROJECT_bintrayApiKey: ${{ secrets.ORG_GRADLE_PROJECT_BINTRAYAPIKEY }}
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}
with:
arguments: release --info "-PreleaseVersion=${{ steps.get_version.outputs.version }}"
arguments: release"-PreleaseVersion=${{ steps.get_version.outputs.version }}"
dependencies-cache-enabled: true
- name: Store HTML test report
uses: actions/upload-artifact@v2
with:
name: test-report-html
path: "**/reports/tests/"
- name: Store XML test report
uses: actions/upload-artifact@v2
with:
name: test-results-xml
path: "**/test-results/"




2 changes: 2 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ configure(subprojects.findAll{p-> p.name.contains('plugin')}){

minimumIntegrationTest {
dependsOn("install")
reports.html.destination = file("$testReportDir/$name")
reports.junitXml.destination = file("$testResultsDir/$name")
systemProperty 'xtext.version', minimumXtextVersion
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class GradleBuildTester extends ExternalResource {
projectDir = temp.newFolder(name)
owner = this
]
gradle = GradleRunner.create.withProjectDir(rootProject.projectDir)
gradle = GradleRunner.create.withProjectDir(rootProject.projectDir).forwardOutput()
}

override protected after() {
Expand Down

0 comments on commit 75358e7

Please sign in to comment.