Skip to content

Commit 911cc0a

Browse files
committed
ci: add devnet wallet funding workflow
1 parent c530078 commit 911cc0a

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/fund-devnet.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
name: Fund Devnet Wallet
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
wallet:
7+
description: 'Wallet address'
8+
required: true
9+
default: '8nsQswnA4Ba9QZFKNQDQRnXJGpjggu7E27TdEJFT7DYP'
10+
jobs:
11+
fund:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Install Solana
15+
run: |
16+
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
17+
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
18+
- name: Airdrop round 1
19+
continue-on-error: true
20+
run: solana airdrop 2 ${{ github.event.inputs.wallet }} --url https://api.devnet.solana.com
21+
- name: Sleep
22+
run: sleep 20
23+
- name: Airdrop round 2
24+
continue-on-error: true
25+
run: solana airdrop 2 ${{ github.event.inputs.wallet }} --url https://api.devnet.solana.com
26+
- name: Sleep
27+
run: sleep 20
28+
- name: Airdrop Helius
29+
continue-on-error: true
30+
run: solana airdrop 2 ${{ github.event.inputs.wallet }} --url "https://devnet.helius-rpc.com/?api-key=08f6f820-71ba-4f05-8c95-6e10e8f6dc1b"
31+
- name: QuickNode faucet
32+
continue-on-error: true
33+
run: |
34+
curl -s -X POST https://faucet.quicknode.com/solana/devnet \
35+
-H "Content-Type: application/json" \
36+
-d '{"wallet":"${{ github.event.inputs.wallet }}"}'
37+
- name: Final balance
38+
run: |
39+
sleep 15
40+
solana balance ${{ github.event.inputs.wallet }} --url https://api.devnet.solana.com
41+
---

0 commit comments

Comments
 (0)