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 105c680
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/main_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
postgres-version: [12, 13, 14, 15, 16]
postgres-version: [12]
# postgres-version: [12, 13, 14, 15, 16]
max-parallel: 4
fail-fast: false

Expand Down Expand Up @@ -90,8 +91,8 @@ jobs:
if: always()
uses: actions/upload-artifact@v3
with:
name: Coverage Report
path: output/test/code-coverage.html
name: Archive Coverage Report
path: build/reports/scoverage

- name: Test Report
uses: dorny/test-reporter@v1
Expand All @@ -105,6 +106,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 @@ -117,7 +124,11 @@ jobs:
with:
path: artifacts

- name: Display structure of downloaded files
run: ls -R
working-directory: artifacts

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: artifacts/**/*.xml
files: artifacts/build/reports/scoverage/cobertura.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 105c680

Please sign in to comment.