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 d9189af
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@ jobs:

- uses: bgd-labs/github-workflows/.github/actions/setup-node@feat/actions-setup-node

- name: test
- name: test lib
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 d9189af

Please sign in to comment.