Add test script
This commit is contained in:
parent
0f507cf4fd
commit
95963e9b29
2 changed files with 21 additions and 17 deletions
19
.github/workflows/docker-image.yml
vendored
19
.github/workflows/docker-image.yml
vendored
|
@ -30,20 +30,5 @@ jobs:
|
|||
dep ensure
|
||||
fi
|
||||
|
||||
- name: Build with go
|
||||
run: go build -v ./...
|
||||
|
||||
- name: Run go unit tests
|
||||
run: go test -v ./... -cover
|
||||
|
||||
- name: Build docker
|
||||
run: docker build . --tag rove:$(date +%s)
|
||||
|
||||
- name: Deploy docker-compose
|
||||
run: docker-compose up --build --detach
|
||||
|
||||
- name: Run go integration tests
|
||||
run: go test ./... -tags integration -cover
|
||||
|
||||
- name: Take down docker-compose
|
||||
run: docker-compose down
|
||||
- name: Build and Test
|
||||
run: ./script/test.sh
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue