Update test-tenderly-action.yml #5
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: Test Tenderly TestNet Action | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test-tenderly-action: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Tenderly TestNet | |
uses: ./.github/actions/tenderly-testnet-action | |
with: | |
access_key: ${{ secrets.TENDERLY_ACCESS_KEY }} | |
project_name: 'vnets' | |
testnet_slug: 'ci_testnet' | |
testnet_name: 'CI TestNet' | |
network_id: '1' | |
block_number: '0x13e772b' | |
- name: Test RPC URLs | |
run: | | |
echo "TestNet ID: ${{ env.TENDERLY_TESTNET_ID }}" | |
echo "Admin RPC URL: ${{ env.TENDERLY_ADMIN_RPC_URL }}" | |
echo "Public RPC URL: ${{ env.TENDERLY_PUBLIC_RPC_URL }}" | |
# Test the Admin RPC endpoint | |
curl -X POST ${{ env.TENDERLY_ADMIN_RPC_URL }} \ | |
-H "Content-Type: application/json" \ | |
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' | |
# Test the Public RPC endpoint | |
curl -X POST ${{ env.TENDERLY_PUBLIC_RPC_URL }} \ | |
-H "Content-Type: application/json" \ | |
--data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}' |