Skip to content

Commit

Permalink
fix: wait-on timout loaded from variables and listen to port instead …
Browse files Browse the repository at this point in the history
…of url
  • Loading branch information
Ehsan Mirzarazi authored and Ehsan Mirzarazi committed Feb 19, 2024
1 parent 7d243b2 commit dbc8cbb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
with:
build: npm run build
start: npm run start
wait-on: 'npx wait-on --timeout 120000 http-get://127.0.0.1:${{ steps.vars.outputs.port }}/ping'
wait-on: 'npx wait-on --timeout ${{ env.WAIT_ON_TIMEOUT }} tcp:${{ steps.vars.outputs.port }}'
env:
WAIT_ON_TIMEOUT: ${{ vars.WAIT_ON_TIMEOUT }}

# Verifies the boilerplate can start and run in codespace environment
test-for-codespaces:
Expand Down Expand Up @@ -83,7 +85,9 @@ jobs:
with:
build: npm run build
start: npm run start
wait-on: 'npx wait-on --timeout 120000 http-get://127.0.0.1:${{ steps.vars.outputs.port }}/ping'
wait-on: 'npx wait-on --timeout ${{ env.WAIT_ON_TIMEOUT }} tcp:${{ steps.vars.outputs.port }}'
env:
WAIT_ON_TIMEOUT: ${{ vars.WAIT_ON_TIMEOUT }}

check-dependabot:
needs:
Expand Down

0 comments on commit dbc8cbb

Please sign in to comment.