Skip to content

Commit

Permalink
updated cache path for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ennioVisco committed Jul 5, 2023
1 parent 29ba65f commit 1b41d31
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Save build cache
uses: actions/cache/save@v3
with:
path: ./build
path: build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}

# Tests running and static code analysis
Expand All @@ -52,14 +52,14 @@ jobs:
- name: Restore build cache
uses: actions/cache/restore@v3
with:
path: ./build
path: build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}
- name: Gradle check
run: ./gradlew check
- name: Save tests cache
uses: actions/cache/save@v3
with:
path: ./build
path: build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}

analyze:
Expand All @@ -78,17 +78,9 @@ jobs:
- name: Restore tests cache
uses: actions/cache/restore@v3
with:
path: ./build
path: build
key: ${{ github.sha }}-${{ github.workflow_id }}-${{ runner.os }}
- name: Codecov update
uses: codecov/codecov-action@v3
with:
token: "d76dfcb2-9baa-40e4-b07a-4b2647bcf3c4" # should be moved to ${{ secrets.CODECOV_TOKEN }}
files: "./build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

- name: Cache SonarCloud packages
uses: actions/cache@v3
with:
Expand All @@ -100,4 +92,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew analyze
- name: Codecov update
uses: codecov/codecov-action@v3
with:
token: "d76dfcb2-9baa-40e4-b07a-4b2647bcf3c4" # should be moved to ${{ secrets.CODECOV_TOKEN }}
files: "build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml"
flags: unittests # optional
name: codecov-umbrella # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

0 comments on commit 1b41d31

Please sign in to comment.