Skip to content

Commit

Permalink
Add sleep to integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
ziegler-daniel committed Jul 4, 2024
1 parent 998e3c0 commit f7777b3
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,25 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: install-library
- name: install azure-functions-core-tools
shell: bash
run: |
npm ci
- name: install-test-function
run: npm install -g azure-functions-core-tools@4 --unsafe-perm true
- name: install dependencies
shell: bash
working-directory: ./example
run: |
npm ci && npm install -g azure-functions-core-tools@4 --unsafe-perm true
run: npm ci
- name: start-test-function
shell: bash
working-directory: ./example
run: |
npm run start &
echo "Waiting until function launched on 8080..."
while ! nc -z 127.0.0.1 8080; do
sleep 1
done
echo "Function launched"
- name: test-function
shell: bash
run: |
Expand Down

0 comments on commit f7777b3

Please sign in to comment.