Update reproducer.yml #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pre-merge | |
on: push | |
jobs: | |
reproducer: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
- name: Install net-tools | |
run: sudo apt install net-tools | |
- name: Configure Verdaccio for IPv4 | |
run: | | |
# Assuming verdaccio.yml is in the current directory and uses the 'listen' field | |
echo "listen: - 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 IPv4 port | |
npx wait-on http://localhost:4873 --timeout 10000 | |
continue-on-error: true | |
- name: Check Verdaccio port | |
run: | | |
if netstat -tuln | grep 4873; then | |
echo "Verdaccio is listening on port 4873" | |
else | |
echo "Verdaccio is not listening on port 4873" | |
fi | |
- name: Print open ports | |
run: netstat -ano | |
- name: check vercaddio | |
run: sudo netstat -tuln | grep '4873' |