This repository has been archived by the owner on Jun 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update golang tests to run in docker compose
- Loading branch information
Showing
6 changed files
with
48 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,24 +17,8 @@ jobs: | |
- name: Check out source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Deploy containers | ||
run: cd dev_utils && docker-compose up -d s3 mq_server | ||
|
||
- name: Wait for containers to start | ||
run: | | ||
RETRY_TIMES=0 | ||
for p in mq s3 | ||
do | ||
until docker ps -f name=$p --format {{.Status}} | grep "(healthy)" | ||
do echo "waiting for $p to become ready" | ||
RETRY_TIMES=$((RETRY_TIMES+1)); | ||
if [ $RETRY_TIMES -eq 30 ]; then exit 1; fi | ||
sleep 10; | ||
done | ||
done | ||
- name: Calc coverage | ||
run: go test -tags live -coverprofile=coverage.txt -covermode=atomic | ||
- name: Run test container | ||
run: cd dev_utils && GOLANG_VERSION=${{ matrix.go-version }} docker compose run tests | ||
|
||
- name: Codecov | ||
uses: codecov/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ | |
*.out | ||
|
||
# log dumps | ||
*.dump | ||
*.dump | ||
|
||
# coverage report | ||
coverage.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters