Added automated smoketest

migrate-github-actions
Tim de Pater 2019-11-05 15:21:21 +01:00
parent 6084df92ac
commit 775a6295aa
No known key found for this signature in database
GPG Key ID: BFE5D809439C9723
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,11 @@
version: '3.5'
services:
app:
build: .
sut:
image: alpine:3.10
depends_on:
- app
command: /tmp/run_tests.sh
volumes:
- "./run_tests.sh:/tmp/run_tests.sh:ro"

3
run_tests.sh 100755
View File

@ -0,0 +1,3 @@
#!/usr/bin/env sh
apk --no-cache add curl
curl --silent --fail http://app:8080 | grep 'PHP 7.3'