Skip to content

Commit

Permalink
build: update CI script to upload test result
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Moussa <ahmed.moussa@iohk.io>
  • Loading branch information
hamada147 committed Oct 26, 2023
1 parent 9858aaa commit 9b910b2
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ on:
jobs:

build:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
Expand All @@ -49,6 +49,9 @@ jobs:
java-version: ${{ env.JAVA_VERSION }}
distribution: "adopt"

- name: Runner
run: echo ${{ runner.os }}

- name: Build for JS, Android, JVM
run: |
./gradlew build test koverXmlReport koverHtmlReport
Expand All @@ -62,16 +65,28 @@ jobs:
update-comment: true

- name: Publish test results
if: always()
if: runner.os == 'Linux'
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "${{ github.workspace }}/atala-prism-sdk/build/test-results/testReleaseUnitTest/TEST-*.xml"
comment_title: "Unit Test Results"
check_name: "Unit Test Results"

- name: Publish test results
if: runner.os == 'macOS'
uses: EnricoMi/publish-unit-test-result-action/composite@v2
with:
files: "${{ github.workspace }}/atala-prism-sdk/build/test-results/testReleaseUnitTest/TEST-*.xml"
comment_title: "Unit Test Results"
check_name: "Unit Test Results"

- name: Publish coverage report
- name: Upload Tests Reports
uses: actions/upload-artifact@v3
with:
name: kover-html
path: atala-prism-sdk/build/kover/atala-prism-sdk/xml
path: |
atala-prism-sdk/build/kover/atala-prism-sdk/xml
atala-prism-sdk/build/reports/tests/**/*.html
atala-prism-sdk/build/reports/tests/jvmTest/index.html
if-no-files-found: error

0 comments on commit 9b910b2

Please sign in to comment.