From d9189af24e9d44748c7731b5baa84ff6969a114f Mon Sep 17 00:00:00 2001 From: Jonas Strassel Date: Thu, 17 Oct 2024 09:08:48 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20little=20test=20for=20the=20a?= =?UTF-8?q?ction?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test.yml | 8 +++++++- action.yml | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 action.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 795b4ba..91f43d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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" diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..87b0b00 --- /dev/null +++ b/action.yml @@ -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