mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
Makefile+github: run unit tests
Currently only the unit-race check and the integration tests are run. This commit ensures that the unit tests are also run.
This commit is contained in:
parent
237f49ffd7
commit
3e23ae3001
2 changed files with 20 additions and 2 deletions
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
|
|
@ -194,6 +194,23 @@ jobs:
|
|||
- name: run check
|
||||
run: make unit-race
|
||||
|
||||
unit:
|
||||
name: unit tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: git checkout
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: setup go ${{ env.GO_VERSION }}
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '${{ env.GO_VERSION }}'
|
||||
|
||||
- name: run check
|
||||
run: make unit
|
||||
|
||||
itest:
|
||||
name: integration test
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
5
Makefile
5
Makefile
|
|
@ -148,7 +148,8 @@ check: unit
|
|||
|
||||
unit:
|
||||
@$(call print, "Running unit tests.")
|
||||
$(UNIT)
|
||||
mkdir -p app/build && touch app/build/index.html
|
||||
$(UNIT) -tags="$(LND_RELEASE_TAGS)"
|
||||
|
||||
unit-cover: $(GOACC_BIN)
|
||||
@$(call print, "Running unit coverage tests.")
|
||||
|
|
@ -156,7 +157,7 @@ unit-cover: $(GOACC_BIN)
|
|||
|
||||
unit-race:
|
||||
@$(call print, "Running unit race tests.")
|
||||
mkdir app/build && touch app/build/index.html
|
||||
mkdir -p app/build && touch app/build/index.html
|
||||
env CGO_ENABLED=1 GORACE="history_size=7 halt_on_errors=1" $(UNIT_RACE) -tags="$(LND_RELEASE_TAGS)"
|
||||
|
||||
goveralls: $(GOVERALLS_BIN)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue