Skip to content

Commit eef8a54

Browse files
committed
chore: run allTests in CI and upload test reports as artifact
1 parent e4dc00f commit eef8a54

2 files changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,17 @@ jobs:
3131
run: ./gradlew detekt
3232

3333
- name: Run tests with coverage
34-
run: ./gradlew koverXmlReport
34+
run: ./gradlew allTests koverXmlReport
35+
36+
- name: Upload test reports
37+
if: always()
38+
uses: actions/upload-artifact@v4
39+
with:
40+
name: test-reports
41+
path: |
42+
build/reports/tests/
43+
build/test-results/
44+
if-no-files-found: ignore
3545

3646
- name: Upload results to Codecov (main only)
3747
if: github.ref == 'refs/heads/main'

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ jobs:
2424
- name: Build and Test
2525
run: ./gradlew --no-daemon build -PciVersion=${{ env.RELEASE_VERSION }}
2626

27+
- name: Upload test reports
28+
if: always()
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: test-reports
32+
path: |
33+
build/reports/tests/
34+
build/test-results/
35+
if-no-files-found: ignore
36+
2737
- name: Publish to Maven Central (Portal)
2838
env:
2939
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.CENTRAL_PORTAL_USER }}

0 commit comments

Comments
 (0)