diff --git a/.github/workflows/clean-up-artifacts.yml b/.github/workflows/clean-up-artifacts.yml index 29b2a4e..054d54d 100644 --- a/.github/workflows/clean-up-artifacts.yml +++ b/.github/workflows/clean-up-artifacts.yml @@ -14,6 +14,6 @@ jobs: name: | bundles release_notes - google_service + google_service_json failOnError: false diff --git a/.github/workflows/create-service-json.yml b/.github/workflows/create-service-json.yml index 3d6790a..fbc1b62 100644 --- a/.github/workflows/create-service-json.yml +++ b/.github/workflows/create-service-json.yml @@ -29,6 +29,6 @@ jobs: - name: Upload to artifacts uses: actions/upload-artifact@v4 with: - name: google_service + name: google_service_json path: ${{ github.workspace }}/app/google-services.json diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 6ccb8f1..49b3a48 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -11,6 +11,10 @@ on: jobs: run-tests: runs-on: ubuntu-latest + # Setting up ENV for all steps in this job + env: + DOWNLOADS_PATH: ./downloaded-artifacts + steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v4 @@ -40,6 +44,12 @@ jobs: - name: Grant execute permission for gradlew run: chmod +x ./gradlew + - name: Download Google Service JSON for GitHub artifacs + uses: actions/download-artifact@v4 + with: + name: google_service_json + path: ${{ env.DOWNLOADS_PATH }} + - name: Update dependencies run: ./gradlew dependencies diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 07ba858..c8a0681 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,4 +26,6 @@ jobs: remove-artifacts: uses: ./.github/workflows/clean-up-artifacts.yml needs: run-tests + # Run this job even if "needs" job is failed + if: ${{ always() && contains(needs.*.result, 'failure') }} secrets: inherit