diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bf8ef2ee..28694229 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -96,11 +96,26 @@ jobs: fail_ci_if_error: true verbose: true + test-e2e: + runs-on: ubuntu-20.04 + needs: + - build + services: + pdf: + image: mormahr/pdf-service:sha-${{ github.sha }} + ports: + - 8080:8080 + + steps: + - name: "Generate basic PDF without returning invalid status code" + run: curl -f --data "
Hello World
" http://localhost:8080/generate > test.pdf + release: runs-on: ubuntu-20.04 needs: - build - test + - test-e2e if: github.ref == 'refs/heads/main' steps: - name: Login to Docker Hub