Skip to content

Commit

Permalink
Update reproducer.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vidyasagarnimmagaddi authored Jun 14, 2024
1 parent 6740b29 commit 1a6be4f
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/reproducer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,25 @@ jobs:
uses: actions/setup-node@v4
- name: Install net-tools
run: sudo apt install net-tools
- name: Configure Verdaccio for IPv4
run: |
echo "listen:\n - 0.0.0.0:4873" > verdaccio.yml
- name: Run verdaccio & Wait for it
run: |
# Start Verdaccio
npx verdaccio --config verdaccio.yml &
# Wait for verdaccio for up to 10 seconds on port 4873
npx wait-on http://localhost:4873 --timeout 10000
continue-on-error: true
- name: Check Verdaccio port and IP version
run: |
echo "Checking if Verdaccio is running on an IPv4 or IPv6 address:"
netstat -tuln | grep 4873
- name: Print open ports
run: netstat -ano
- name: Check Verdaccio port and IP version
run: |
echo "Checking if Verdaccio is running on an IPv4 or IPv6 address:"
if netstat -tuln | grep 4873 | grep -q tcp6; then
echo "Verdaccio is running on IPv6."
echo "Verdaccio is running on IPv6."
elif netstat -tuln | grep 4873 | grep -q tcp; then
echo "Verdaccio is running on IPv4."
echo "Verdaccio is running on IPv4."
else
echo "Verdaccio is not running on port 4873."
echo "Verdaccio is not running on port 4873."
fi
- name: Configure Verdaccio for IPv4
run: |
echo "listen:\n - 0.0.0.0:4873" > verdaccio.yml
- name: Print open ports
run: netstat -ano

0 comments on commit 1a6be4f

Please sign in to comment.