Skip to content

Commit

Permalink
gradle plugin updates and fix coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
zingmane committed Oct 6, 2023
1 parent e329f7a commit 4c07f08
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 20 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: Test Report
name: test-report
path: build/reports/tests/test

- name: Archive test result (xml)
- name: Archive test results (xml)
if: always()
uses: actions/upload-artifact@v3
with:
name: Unit Test Results
name: test-results
path: build/test-results/test/TEST-*.xml

- name: Archive code coverage results
if: always()
uses: actions/upload-artifact@v3
with:
name: Coverage Report
path: output/test/code-coverage.html
name: coverage-report
path: build/reports/scoverage

- name: Test Report
uses: dorny/test-reporter@v1
Expand All @@ -101,6 +101,12 @@ jobs:
fail-on-error: "true"
max-annotations: "10"

- name: Coverage Report
uses: 5monkeys/cobertura-action@master
with:
path: build/reports/scoverage/cobertura.xml
minimum_coverage: 80

publish-test-results:
name: "Publish Unit Tests Results"
needs: build-and-test
Expand All @@ -109,11 +115,11 @@ jobs:

steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: artifacts

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: artifacts/**/*.xml
files: artifacts/test-results/**/*.xml
22 changes: 14 additions & 8 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
postgres-version: [12, 13, 14, 15, 16]
postgres-version: [13, 14, 15, 16]
max-parallel: 4
fail-fast: false

Expand Down Expand Up @@ -76,22 +76,22 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: Test Report
name: test-report
path: build/reports/tests/test

- name: Archive test result (xml)
- name: Archive test results (xml)
if: always()
uses: actions/upload-artifact@v3
with:
name: Unit Test Results
name: test-results
path: build/test-results/test/TEST-*.xml

- name: Archive code coverage results
if: always()
uses: actions/upload-artifact@v3
with:
name: Coverage Report
path: output/test/code-coverage.html
name: coverage-report
path: build/reports/scoverage

- name: Test Report
uses: dorny/test-reporter@v1
Expand All @@ -105,6 +105,12 @@ jobs:
fail-on-error: "true"
max-annotations: "10"

- name: Coverage Report
uses: 5monkeys/cobertura-action@master
with:
path: build/reports/scoverage/cobertura.xml
minimum_coverage: 80

publish-test-results:
name: "Publish Unit Tests Results"
needs: build-and-test
Expand All @@ -113,11 +119,11 @@ jobs:

steps:
- name: Download Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: artifacts

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: artifacts/**/*.xml
files: artifacts/test-results/**/*.xml
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ plugins {
id 'scala'
id 'application'

id "com.github.ben-manes.versions" version '0.42.0'
id "com.github.ben-manes.versions" version '0.48.0'

id 'org.scoverage' version '7.0.0'
id 'com.github.kt3k.coveralls' version '2.12.0'
id 'org.scoverage' version '8.0.3'
id 'com.github.kt3k.coveralls' version '2.12.2'

id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.ajoberstar.grgit' version '4.1.1'
id 'org.ajoberstar.grgit' version '5.2.0'

id 'com.diffplug.spotless' version '6.3.0'
id 'com.diffplug.spotless' version '6.22.0'

id 'com.adarshr.test-logger' version '3.2.0'
}
Expand Down

0 comments on commit 4c07f08

Please sign in to comment.