Skip to content

Commit 2ff8182

Browse files
authored
chore: fix up coveralls merger step (#1716)
1 parent 776a503 commit 2ff8182

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,19 @@ jobs:
7575
- name: Start epmd
7676
run: epmd -daemon
7777
- name: Run tests
78-
run: MIX_TEST_PARTITION=${{ matrix.partition }} MAX_CASES=3 mix coveralls.github --partitions 4 --parallel --flagname partition-${{ matrix.partition }}
79-
env:
80-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
run: MIX_TEST_PARTITION=${{ matrix.partition }} mix coveralls.lcov --partitions 4
79+
- name: Upload coverage
80+
uses: coverallsapp/github-action@v2
81+
with:
82+
github-token: ${{ secrets.GITHUB_TOKEN }}
83+
flag-name: partition-${{ matrix.partition }}
84+
parallel: true
85+
file: cover/lcov.info
8186

8287
coverage:
8388
name: Merge Coverage
8489
needs: tests
85-
if: always()
90+
if: ${{ needs.tests.result == 'success' }}
8691
runs-on: blacksmith-8vcpu-ubuntu-2404
8792
steps:
8893
- uses: coverallsapp/github-action@v2

0 commit comments

Comments
 (0)