Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add testnet rpc tunnel workflow #799

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/testnet-rpc-tunnel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on: workflow_dispatch

name: Setup Anvil on managed Cloudflared tunnel

jobs:
setup-anvil:
name: Setup Anvil
runs-on: ubuntu-latest
steps:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Setup Cloudflared
uses: AnimMouse/setup-cloudflared@v1
with:
cloudflare_tunnel_credential: ${{ secrets.CLOUDFLARE_TUNNEL_CREDENTIAL }}
cloudflare_tunnel_configuration: ${{ secrets.CLOUDFLARE_TUNNEL_CONFIGURATION }}
cloudflare_tunnel_id: ${{ secrets.CLOUDFLARE_TUNNEL_ID }}
- name: Create comment
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: 1
body: |
Cloudflared tunnel started.
- name: Start Anvil
run: timeout 3m anvil || true
shell: bash
- name: Shutdown and view logs of cloudflared
if: always()
uses: AnimMouse/setup-cloudflared/shutdown@v1
- name: Create comment
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: 1
body: |
Cloudflared tunnel shutdown.
Loading