ci(packages): add testing

This commit is contained in:
Thomas Hobson 2021-03-14 17:57:11 +13:00
parent 81235d2c39
commit e1d9ae69c9
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
1 changed files with 5 additions and 4 deletions

View File

@ -77,12 +77,13 @@ jobs:
- name: Run tests
run: |
docker run -v $(pwd)'/repo:/piston/repo' -v $(pwd)'/packages:/piston/packages' --name piston_fs_repo docker.pkg.github.com/engineer-man/piston/repo-builder --no-build &
docker run -v $(pwd)'/data:/piston' --name api docker.pkg.github.com/engineer-man/piston/api &
docker run -v $(pwd)'/repo:/piston/repo' -v $(pwd)'/packages:/piston/packages' -d --name piston_fs_repo docker.pkg.github.com/engineer-man/piston/repo-builder --no-build
docker run -v $(pwd)'/data:/piston' --name api docker.pkg.github.com/engineer-man/piston/api -d
echo Waiting for API to start..
while [[ "$(curl -s -w '%{http_code}' http://api:6969/runtimes)" != "200" ]]; do sleep 5; done
docker run --network container:api appropriate/curl --retry 10 --retry-connrefused http://localhost:6969/runtimes
echo Testing packages
echo Listing Packages
docker run --network container:api appropriate/curl http://localhost:6969/packages