Skip to content

Commit

Permalink
Update newman.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chiturca authored Jun 28, 2024
1 parent d2eb1ac commit d65c934
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/newman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,22 @@ jobs:
with:
node-version: '20.11.1'

- name: Install dependencies
run: npm install

- name: Start API server
run: npm start & # Start your API server here
env:
NODE_ENV: test

- name: Wait for API server to be ready
run: |
echo "Checking if API server is up..."
until $(curl --output /dev/null --silent --head --fail http://localhost:60805/swagger/index.html); do
printf '.'
sleep 5
done
- name: Install Newman
run: npm install -g newman

Expand Down

0 comments on commit d65c934

Please sign in to comment.