Skip to content

Commit

Permalink
Create testnet-rpc-tunnel.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gitcoindev authored Oct 2, 2023
1 parent d6c346b commit c538efc
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/testnet-rpc-tunnel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
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: Start Python HTTP server
run: timeout 5m python -m http.server 8545 || true
- name: Create comment
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: 1
body: |
Started cloudflared tunnel.
- 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.
# - name: Run Anvil
# run: anvil
# shell: bash

0 comments on commit c538efc

Please sign in to comment.