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:
Elle Mouton 2022-09-23 10:29:48 +02:00
parent 237f49ffd7
commit 3e23ae3001
No known key found for this signature in database
GPG key ID: D7D916376026F177
2 changed files with 20 additions and 2 deletions

View file

@ -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

View file

@ -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)