est case #2
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
name: Test | ||
on: ["pull_request"] | ||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Build container | ||
run: | ||
docker build -t chado . | ||
- name: Test Running Container | ||
run: | ||
docker run -n chado -it -e INSTALL_YEAST_DATA=1 chado & | ||
while true; do | ||
# Check that it's ready to run | ||
start_count=$(docker logs chado | grep 'database system is ready to accept connections' | wc -l) | ||
if (( start_count > 1 )); then | ||
break | ||
fi | ||
done | ||
# Check that yeast is, in fact loaded. | ||
docker exec -it $(docker ps -q) psql -U postgres -c "select * from organism where common_name = 'yeast' " | grep '1 row' | ||
# Done! | ||
exit 0 |