Skip to content

add BASE_SEPOLIA_RPC_URL to build and test environments #5

add BASE_SEPOLIA_RPC_URL to build and test environments

add BASE_SEPOLIA_RPC_URL to build and test environments #5

Workflow file for this run

name: ci
permissions:
contents: read
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
env:
BASE_SEPOLIA_RPC_URL: "https://sepolia.base.org"
steps:
- uses: actions/checkout@v4
- uses: foundry-rs/foundry-toolchain@v1
with:
version: stable
- name: Cache lib
uses: actions/cache@v4
with:
path: lib
key: lib-${{ runner.os }}-${{ hashFiles('**/foundry.toml', '**/.gitmodules') }}
- name: Install deps
run: forge install --no-git
- name: Build
env:
BASE_SEPOLIA_RPC_URL: ${{ env.BASE_SEPOLIA_RPC_URL }}
run: |
echo "BASE_SEPOLIA_RPC_URL=$BASE_SEPOLIA_RPC_URL"
forge build
- name: Test
env:
BASE_SEPOLIA_RPC_URL: ${{ env.BASE_SEPOLIA_RPC_URL }}
run: forge test -vvv