Skip to content

Commit

Permalink
Wait for Docker image to be ready
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Aug 20, 2024
1 parent f12e81b commit 396a940
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ jobs:
run: npm install
- name: Start test server
run: docker compose up -d
- name: Wait for response
uses: nev7n/wait_for_response@v1
with:
url: http://localhost:5001/ready/
- name: Run the tests
run: node test-fixtures.mjs || exit 1
4 changes: 4 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
run: npm install
- name: Start test server
run: docker compose up -d
- name: Wait for response
uses: nev7n/wait_for_response@v1
with:
url: http://localhost:5001/ready/
- name: Run the tests
run: node test-fixtures.mjs || exit 1

Expand Down
6 changes: 6 additions & 0 deletions test/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@

app = Flask(__name__, template_folder="/home/app/tna_frontend_jinja/templates")


@app.route("/ready/")
def ready():
return "ok"


app.register_blueprint(components_bp, url_prefix="/components")
app.register_blueprint(utilities_bp, url_prefix="/utilities")
app.register_blueprint(templates_bp, url_prefix="/templates")

0 comments on commit 396a940

Please sign in to comment.