Skip to content

refactor: ♻️ Dynamic Env-Var names (#16) #62

refactor: ♻️ Dynamic Env-Var names (#16)

refactor: ♻️ Dynamic Env-Var names (#16) #62

Workflow file for this run

# creates a new npm release
name: test
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # [email protected]
- uses: bgd-labs/github-workflows/.github/actions/setup-node@main
- name: test lib
run: npm test -- --run
- name: test action
uses: ./
with:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
env:
RPC_POLYGON: "https://rpc.polygon.com"
- name: test action (assertion)
run: |
test "${{env.RPC_POLYGON}}" = "https://rpc.polygon.com"
test "${{env.RPC_MAINNET}}" = "https://eth-mainnet.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}"