File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -52,16 +52,20 @@ jobs:
52
52
- build
53
53
- test-unit
54
54
runs-on : ubuntu-latest
55
+ env :
56
+ DISCONNECTED : 1
57
+ HUB_BASE_URL : http://localhost:8080
58
+ DB_PATH : /tmp/hub.db
55
59
steps :
56
60
- uses : actions/checkout@v4
57
61
- uses : actions/setup-go@v3
58
62
with :
59
63
go-version : ' 1.19'
60
64
- run : |
61
- DISCONNECTED=1 make run &
65
+ rm -f $DB_PATH
66
+ make run &
62
67
sleep 15 # probably a dirty solution
63
- DISCONNECTED=1 HUB_BASE_URL=http://localhost:8080 make test-api
64
- DISCONNECTED=1 HUB_BASE_URL=http://localhost:8080 make test-api # Intentionaly run 2x to catch data left in Hub DB.
68
+ make test-api
65
69
66
70
build-image :
67
71
needs :
Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ test:
143
143
144
144
# Run Hub REST API tests.
145
145
test-api :
146
- HUB_BASE_URL=$(HUB_BASE_URL ) go test -count=1 -p=1 -v ./test/api/...
146
+ HUB_BASE_URL=$(HUB_BASE_URL ) go test -count=1 -p=1 -v -failfast ./test/api/...
147
147
148
148
# Run Hub test suite.
149
149
test-all : test-unit test-api
You can’t perform that action at this time.
0 commit comments