Skip to content

Commit

Permalink
workflows: attach reports if gradle fails
Browse files Browse the repository at this point in the history
  • Loading branch information
handymenny committed Oct 1, 2024
1 parent 7cbf3e5 commit 7d9e260
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ jobs:
- name: Build & Test
if: ${{ env.NEW_COMMIT_COUNT > 0 }}
run: ./gradlew genTsTypes build
- name: Store reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: build/reports/
- name: Save dist zip
if: ${{ env.NEW_COMMIT_COUNT > 0 }}
run: cp build/distributions/*.zip .
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
uses: gradle/actions/setup-gradle@v4
- name: Build & Test
run: ./gradlew genTsTypes build
- name: Store reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: build/reports/
- name: Save dist zip
run: cp build/distributions/*.zip .
- uses: marvinpinto/[email protected]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
uses: gradle/actions/setup-gradle@v4
- name: Test
run: ./gradlew test --rerun
- name: Store reports
if: failure()
uses: actions/upload-artifact@v4
with:
name: reports
path: build/reports/
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
Expand Down

0 comments on commit 7d9e260

Please sign in to comment.