Skip to content

Commit

Permalink
Merge pull request #128 from mormahr/test-e2e
Browse files Browse the repository at this point in the history
Add e2e test against running container
  • Loading branch information
mormahr authored Sep 1, 2021
2 parents 962221e + b60066d commit 4e951a4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "<p>Hello World</p>" 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
Expand Down

0 comments on commit 4e951a4

Please sign in to comment.