Skip to content

Commit

Permalink
Fix publish test results step and add macos-arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
linroid committed Apr 2, 2024
1 parent 25cd673 commit ee7b6fa
Showing 1 changed file with 23 additions and 17 deletions.
40 changes: 23 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
os: windows-latest
- platform: macos
os: macos-latest
- platform: macos-arm64
os: macos-latest-xlarge
- platform: android
os: ubuntu-latest
- platform: ios
Expand All @@ -37,13 +39,17 @@ jobs:
run: chmod +x gradlew
- name: JVM Unit Test
run: ./gradlew cleanJvmTest jvmTest
if: ${{ matrix.platform == 'linux' || matrix.platform == 'windows' || matrix.platform == 'macos' }}
if: ${{ matrix.platform == 'linux' || matrix.platform == 'windows' || matrix.platform == 'macos' || matrix.platform == 'macos-arm64' }}
- name: Android Unit Test
run: ./gradlew cleanTestDebugUnitTest testDebugUnitTest
if: ${{ matrix.platform == 'android' }}
- name: iOS Unit Test
run: ./gradlew cleanIosSimulatorArm64Test iosSimulatorArm64Test
if: ${{ matrix.platform == 'ios' }}
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: ./**/build/test-results/**/*.xml
- name: Upload HTML reports
uses: actions/upload-artifact@v3
if: always()
Expand All @@ -57,19 +63,19 @@ jobs:
name: ${{ matrix.platform }}-results-xml.zip
path: ./**/build/test-results/**/*.xml

publish-test-results:
name: Publish Unit Tests Results
needs: test
runs-on: ubuntu-latest
if: always()

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

- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v1
with:
files: artifacts/**/Test-*.xml
# publish-test-results:
# name: Publish Unit Tests Results
# needs: test
# runs-on: ubuntu-latest
# if: always()
#
# steps:
# - name: Download Artifacts
# uses: actions/download-artifact@v3
# with:
# path: artifacts
#
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v1
# with:
# files: artifacts/**/*results-xml.zip

0 comments on commit ee7b6fa

Please sign in to comment.