Skip to content

Commit

Permalink
Merge pull request #190 from appunite/dependabot/github_actions/actio…
Browse files Browse the repository at this point in the history
…ns/download-artifact-4

chore(deps): bump actions/download-artifact from 3 to 4
  • Loading branch information
nowakweronika authored Feb 8, 2024
2 parents 82ddaf3 + 74f2ebf commit 00e08c9
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ jobs:

- name: Upload tests results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-unit
path: |
*/build/test-results/**
*/build/paparazzi/failures/**
Expand Down Expand Up @@ -144,21 +144,32 @@ jobs:
- name: Upload tests results
if: always()
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: test-results
name: test-results-instrumentation
path: |
*/build/test-results/**
retention-days: 5

merge:
runs-on: ubuntu-latest
needs:
- android-tests
- unit-tests
steps:
- name: Merge Artifacts
uses: actions/upload-artifact/merge@v4
with:
name: test-results
pattern: test-results-*

code-coverage:
name: Merged code coverage
runs-on: ubuntu-20.04
permissions:
pull-requests: write
needs:
- android-tests
- unit-tests
- merge

steps:

Expand All @@ -169,15 +180,16 @@ jobs:
uses: ./.github/actions/prepare-android-env

- name: Download tests results for both jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-results


- name: Run code coverage
run: ./gradlew codeCoverage

- name: Store HTML coverage report
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
Expand Down Expand Up @@ -226,8 +238,7 @@ jobs:
runs-on: ubuntu-20.04
if: always()
needs:
- android-tests
- unit-tests
- merge
- verify-formatting
- test-license-headers

Expand All @@ -240,7 +251,7 @@ jobs:
.github/
- name: Download tests results for both jobs
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-results

Expand Down

0 comments on commit 00e08c9

Please sign in to comment.