Skip to content

Commit

Permalink
github/workflows: Split Gradle caches for jobs that run in parallel
Browse files Browse the repository at this point in the history
This is a try to solve the issue described in [1].

[1]: burrunan/gradle-cache-action#40

Signed-off-by: Sebastian Schuberth <sebastian.schuberth@bosch.io>
  • Loading branch information
sschuberth committed Feb 28, 2022
1 parent 3721d2f commit 1a5adab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
- name: Build the reporter-web-app
uses: burrunan/gradle-cache-action@v1
with:
job-id: build-reporter-web-app
arguments: --stacktrace :reporter-web-app:yarnBuild
test:
needs: build
Expand All @@ -59,6 +60,7 @@ jobs:
- name: Run unit tests
uses: burrunan/gradle-cache-action@v1
with:
job-id: test
arguments: test jacocoTestReport -x :reporter-web-app:yarnBuild
- name: Upload code coverage data
uses: codecov/codecov-action@v2
Expand Down Expand Up @@ -91,6 +93,7 @@ jobs:
- name: Run functional tests
uses: burrunan/gradle-cache-action@v1
with:
job-id: funTest-non-analyzer
arguments: funTest jacocoFunTestReport -x :analyzer:funTest
- name: Upload code coverage data
uses: codecov/codecov-action@v2
Expand Down Expand Up @@ -128,6 +131,7 @@ jobs:
- name: Run functional tests
uses: burrunan/gradle-cache-action@v1
with:
job-id: funTest-analyzer-no-docker
arguments: :analyzer:funTest :analyzer:jacocoFunTestReport -Dkotest.tags=NoDockerTag
- name: Upload code coverage data
uses: codecov/codecov-action@v2

0 comments on commit 1a5adab

Please sign in to comment.