Skip to content

Commit

Permalink
Put integration test back
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed May 30, 2024
1 parent 5774d81 commit 1e8c9fc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.git
.github
gha-creds-*.json
24 changes: 24 additions & 0 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,27 @@ jobs:
tags: |
us-docker.pkg.dev/${{ secrets.GCLOUD_PROJECT }}/public/cider:${{steps.extract_branch.outputs.branch}}-${{steps.extract_tag.outputs.tag}}
us-docker.pkg.dev/${{ secrets.GCLOUD_PROJECT }}/public/cider:${{steps.extract_branch.outputs.branch}}
integration-test:
needs: [build-push]
runs-on: ubuntu-latest
services:
nginx:
image: nginx:latest
options: >-
--health-cmd "curl --fail http://localhost || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 3
cider:
image: jcorall/cider:latest
ports:
- 8080:8080
env:
BACKEND_HOST: nginx
steps:
- name: Test the application
run: |
sleep 10
curl -v http://127.0.0.1:8080
docker container ls
docker logs cider

0 comments on commit 1e8c9fc

Please sign in to comment.