File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -177,6 +177,23 @@ jobs:
177
177
- name : compile rpc for golang
178
178
run : make rpc
179
179
180
+ unit-race :
181
+ name : unit-race
182
+ runs-on : ubuntu-latest
183
+ steps :
184
+ - name : git checkout
185
+ uses : actions/checkout@v2
186
+ with :
187
+ fetch-depth : 0
188
+
189
+ - name : setup go ${{ env.GO_VERSION }}
190
+ uses : actions/setup-go@v2
191
+ with :
192
+ go-version : ' ${{ env.GO_VERSION }}'
193
+
194
+ - name : run check
195
+ run : make unit-race
196
+
180
197
itest :
181
198
name : integration test
182
199
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -50,6 +50,9 @@ XARGS := xargs -L 1
50
50
51
51
LINT = $(LINT_BIN ) run -v
52
52
53
+ UNIT := $(GOLIST ) | $(XARGS ) env $(GOTEST )
54
+ UNIT_RACE := $(UNIT ) -race
55
+
53
56
include make/release_flags.mk
54
57
55
58
# We only return the part inside the double quote here to avoid escape issues
@@ -153,7 +156,8 @@ unit-cover: $(GOACC_BIN)
153
156
154
157
unit-race :
155
158
@$(call print, "Running unit race tests.")
156
- env CGO_ENABLED=1 GORACE=" history_size=7 halt_on_errors=1" $(UNIT_RACE )
159
+ mkdir app/build && touch app/build/index.html
160
+ env CGO_ENABLED=1 GORACE=" history_size=7 halt_on_errors=1" $(UNIT_RACE ) -tags=" $( LND_RELEASE_TAGS) "
157
161
158
162
goveralls : $(GOVERALLS_BIN )
159
163
@$(call print, "Sending coverage report.")
You can’t perform that action at this time.
0 commit comments