Skip to content

Commit

Permalink
Use localtunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
caleeli committed Oct 23, 2024
1 parent 1aaeae4 commit 001b4cd
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,16 @@ jobs:
node-version: 20
check-latest: true
cache: 'npm'
- name: Install ngrok 🛠
run: |
curl -s https://ngrok-agent.s3.amazonaws.com/ngrok.asc | sudo tee /etc/apt/trusted.gpg.d/ngrok.asc >/dev/null && \
echo "deb https://ngrok-agent.s3.amazonaws.com buster main" | sudo tee /etc/apt/sources.list.d/ngrok.list && \
sudo apt update && sudo apt install ngrok
- name: Authenticate ngrok 🔑
run: ngrok config add-authtoken ${{ secrets.NGROK_AUTH_TOKEN }}

- name: Start ngrok for localhost:8080 🌍
run: |
ngrok http 8080 &
- name: Display ngrok public URL
- name: Install LocalTunnel
run: npm install -g localtunnel
- name: Start LocalTunnel for localhost:8080 🌍
run: lt --port 8080 > localtunnel_url.txt &
- name: Display LocalTunnel public URL
run: |
sleep 5
curl -s http://localhost:4040/api/tunnels | jq '.tunnels[0].public_url'
cat localtunnel_url.txt
- name: Cypress run
uses: cypress-io/github-action@v6
with:
Expand Down

0 comments on commit 001b4cd

Please sign in to comment.