Skip to content

Commit

Permalink
✅ Add little test for the action
Browse files Browse the repository at this point in the history
  • Loading branch information
boredland committed Oct 17, 2024
1 parent da22e14 commit d561a3b
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ jobs:

- name: test
run: npm test -- --run

- name: test-action
uses: ./
with:
ALCHEMY_API_KEY: "bla"
RPC_POLYGON: "https://rpc.polygon.com"
37 changes: 37 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: "rpc-env"
description: "Iterates over the supported chain ids and sets the corresponding env var"
inputs:
ALCHEMY_API_KEY:
description: "Alchemy API key"
RPC_MAINNET:
description: "RPC for mainnet"
RPC_POLYGON:
description: "RPC for polygon"
RPC_AVALANCHE:
description: "RPC for avalanche"
RPC_OPTIMISM:
description: "RPC for optimism"
RPC_ARBITRUM:
description: "RPC for arbitrum"
RPC_METIS:
description: "RPC for metis"
RPC_BASE:
description: "RPC for base"
RPC_FANTOM:
description: "RPC for fantom"
RPC_BNB:
description: "RPC for bnb"
RPC_GNOSIS:
description: "RPC for gnosis"
RPC_ZKEVM:
description: "RPC for polygon zk evm"
RPC_SCROLL:
description: "RPC for scroll"
RPC_ZKSYNC:
description: "RPC for zksync"
RPC_SEPOLIA:
description: "RPC for sepolia"

runs:
using: "node20"
main: dist/action.js

0 comments on commit d561a3b

Please sign in to comment.