mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 01:36:24 +01:00
GitHub+make: debug failing test, use official coveralls action
This commit is contained in:
parent
576da75a07
commit
124137e31a
2 changed files with 15 additions and 12 deletions
23
.github/workflows/main.yml
vendored
23
.github/workflows/main.yml
vendored
|
@ -218,11 +218,11 @@ jobs:
|
|||
fail-fast: false
|
||||
matrix:
|
||||
unit_type:
|
||||
- btcd unit-cover
|
||||
- unit-cover
|
||||
- unit tags="kvdb_etcd"
|
||||
- unit tags="kvdb_postgres"
|
||||
- unit tags="kvdb_sqlite"
|
||||
- btcd unit-race
|
||||
- unit-race
|
||||
- unit-module
|
||||
|
||||
steps:
|
||||
|
@ -260,12 +260,13 @@ jobs:
|
|||
run: make ${{ matrix.unit_type }}
|
||||
|
||||
- name: Send coverage
|
||||
uses: ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
|
||||
if: matrix.unit_type == 'btcd unit-cover'
|
||||
uses: coverallsapp/github-action@v2
|
||||
if: matrix.unit_type == 'unit-cover'
|
||||
continue-on-error: true
|
||||
with:
|
||||
path-to-profile: coverage.txt
|
||||
file: coverage.txt
|
||||
flag-name: 'unit'
|
||||
format: 'golang'
|
||||
parallel: true
|
||||
|
||||
|
||||
|
@ -317,10 +318,11 @@ jobs:
|
|||
- name: Send coverage
|
||||
if: ${{ contains(matrix.args, 'cover=1') }}
|
||||
continue-on-error: true
|
||||
uses: ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
|
||||
uses: coverallsapp/github-action@v2
|
||||
with:
|
||||
path-to-profile: coverage.txt
|
||||
file: coverage.txt
|
||||
flag-name: 'itest-${{ matrix.name }}'
|
||||
format: 'golang'
|
||||
parallel: true
|
||||
|
||||
- name: Zip log files on failure
|
||||
|
@ -385,10 +387,11 @@ jobs:
|
|||
- name: Send coverage
|
||||
if: ${{ contains(matrix.args, 'cover=1') }}
|
||||
continue-on-error: true
|
||||
uses: ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
|
||||
uses: coverallsapp/github-action@v2
|
||||
with:
|
||||
path-to-profile: coverage.txt
|
||||
file: coverage.txt
|
||||
flag-name: 'itest-${{ matrix.name }}'
|
||||
format: 'golang'
|
||||
parallel: true
|
||||
|
||||
- name: Zip log files on failure
|
||||
|
@ -552,7 +555,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Send coverage
|
||||
uses: ziggie1984/actions-goveralls@c440f43938a4032b627d2b03d61d4ae1a2ba2b5c
|
||||
uses: coverallsapp/github-action@v2
|
||||
continue-on-error: true
|
||||
with:
|
||||
parallel-finished: true
|
||||
|
|
4
Makefile
4
Makefile
|
@ -246,12 +246,12 @@ unit-debug: $(BTCD_BIN)
|
|||
$(UNIT_DEBUG)
|
||||
|
||||
#? unit-cover: Run unit tests in coverage mode
|
||||
unit-cover:
|
||||
unit-cover: $(BTCD_BIN)
|
||||
@$(call print, "Running unit coverage tests.")
|
||||
$(UNIT_COVER)
|
||||
|
||||
#? unit-race: Run unit tests in race detector mode
|
||||
unit-race:
|
||||
unit-race: $(BTCD_BIN)
|
||||
@$(call print, "Running unit race tests.")
|
||||
env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(UNIT_RACE)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue