GitHub: remove generated files from coverage
This commit is contained in:
1 file changed
+15
-3
@@ -259,12 +259,16 @@ jobs:
|
|||||||
- name: run ${{ matrix.unit_type }}
|
- name: run ${{ matrix.unit_type }}
|
||||||
run: make ${{ matrix.unit_type }}
|
run: make ${{ matrix.unit_type }}
|
||||||
|
|
||||||
|
- name: Clean coverage
|
||||||
|
run: grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
|
||||||
|
if: matrix.unit_type == 'unit-cover'
|
||||||
|
|
||||||
- name: Send coverage
|
- name: Send coverage
|
||||||
uses: coverallsapp/github-action@v2
|
uses: coverallsapp/github-action@v2
|
||||||
if: matrix.unit_type == 'unit-cover'
|
if: matrix.unit_type == 'unit-cover'
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
with:
|
with:
|
||||||
file: coverage.txt
|
file: coverage-norpc.txt
|
||||||
flag-name: 'unit'
|
flag-name: 'unit'
|
||||||
format: 'golang'
|
format: 'golang'
|
||||||
parallel: true
|
parallel: true
|
||||||
@@ -315,12 +319,16 @@ jobs:
|
|||||||
- name: run ${{ matrix.name }}
|
- name: run ${{ matrix.name }}
|
||||||
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
run: make itest-parallel tranches=${{ env.TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
||||||
|
|
||||||
|
- name: Clean coverage
|
||||||
|
run: grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
|
||||||
|
if: ${{ contains(matrix.args, 'cover=1') }}
|
||||||
|
|
||||||
- name: Send coverage
|
- name: Send coverage
|
||||||
if: ${{ contains(matrix.args, 'cover=1') }}
|
if: ${{ contains(matrix.args, 'cover=1') }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: coverallsapp/github-action@v2
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
file: coverage.txt
|
file: coverage-norpc.txt
|
||||||
flag-name: 'itest-${{ matrix.name }}'
|
flag-name: 'itest-${{ matrix.name }}'
|
||||||
format: 'golang'
|
format: 'golang'
|
||||||
parallel: true
|
parallel: true
|
||||||
@@ -384,12 +392,16 @@ jobs:
|
|||||||
- name: run ${{ matrix.name }}
|
- name: run ${{ matrix.name }}
|
||||||
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
run: make itest-parallel tranches=${{ env.SMALL_TRANCHES }} ${{ matrix.args }} shuffleseed=${{ github.run_id }}${{ strategy.job-index }}
|
||||||
|
|
||||||
|
- name: Clean coverage
|
||||||
|
run: grep -Ev '(\.pb\.go|\.pb\.json\.go|\.pb\.gw\.go)' coverage.txt > coverage-norpc.txt
|
||||||
|
if: ${{ contains(matrix.args, 'cover=1') }}
|
||||||
|
|
||||||
- name: Send coverage
|
- name: Send coverage
|
||||||
if: ${{ contains(matrix.args, 'cover=1') }}
|
if: ${{ contains(matrix.args, 'cover=1') }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: coverallsapp/github-action@v2
|
uses: coverallsapp/github-action@v2
|
||||||
with:
|
with:
|
||||||
file: coverage.txt
|
file: coverage-norpc.txt
|
||||||
flag-name: 'itest-${{ matrix.name }}'
|
flag-name: 'itest-${{ matrix.name }}'
|
||||||
format: 'golang'
|
format: 'golang'
|
||||||
parallel: true
|
parallel: true
|
||||||
|
|||||||
Reference in new issue
Block a user