Skip to content

Commit 3fd4913

Browse files
committed
Fix parallel job issues in CI for coveralls
1 parent e18f857 commit 3fd4913

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
run: ./gradlew test runGameTestServer jacocoTestReport
7474
- name: 'Submit coverage results'
7575
uses: coverallsapp/github-action@v2
76+
with:
77+
flag-name: ${{ matrix.java }}-${{ matrix.distribution }}
78+
parallel: true
7679
- name: 'Deploy as GitHub CI artifacts'
7780
uses: actions/upload-artifact@v4
7881
if: startsWith(matrix.java, env.DEFAULT_JAVA_VERSION) && startsWith(matrix.java, env.DEFAULT_JAVA_VERSION) && startsWith(matrix.distribution, env.DEFAULT_JAVA_DISTRIBUTION)
@@ -105,3 +108,14 @@ jobs:
105108
branch: gh-pages
106109
folder: build/docs/javadoc
107110
clean: true
111+
112+
coveralls:
113+
name: Coverage check
114+
needs: test
115+
runs-on: ubuntu-latest
116+
steps:
117+
- name: Consolidate test coverage from different jobs
118+
uses: coverallsapp/github-action@v2
119+
with:
120+
parallel-finished: true
121+
fail-on-error: false

0 commit comments

Comments
 (0)