diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 6ef9c25..7b52e70 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -32,3 +32,27 @@ jobs: - name: Look around run: ls -la + + - name: Start packaged Sinatra application + run: ./sinatra.teb & + env: + PORT: 4567 + + - name: Wait for Sinatra to start + run: sleep 10 + + - name: Install curl + run: | + if [ -e "/etc/lsb-release" ]; then + apt-get -y update + apt-get -y install curl procps + elif [ -e "/etc/alpine-release" ]; then + apk --no-cache --upgrade add curl procps + fi + + - name: Place GET request + run: | + curl http://localhost:4567 + + - name: End Sinatra application + run: pkill -f sample.tebako diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index c2a8924..1b49173 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -35,3 +35,17 @@ jobs: - name: Look around run: ls -la + + - name: Start packaged Sinatra application + run: ./sample.tebako & + env: + PORT: 4567 + + - name: Wait for Sinatra to start + run: sleep 10 + + - name: Place GET request + run: curl http://localhost:4567 + + - name: End Sinatra application + run: pkill -f sample.tebako