Skip to content

add env

add env #2

Workflow file for this run

name: test
on: [push]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
env:
FOUNDRY_PROFILE: ci
jobs:
check:
strategy:
fail-fast: true
name: Foundry project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Forge build
run: |
forge --version
forge build --sizes
id: build
- name: Create env file
run: |
touch .env
echo OP_MAINNET_RPC="${{ secrets.OP_MAINNET_RPC }}" >> .env
echo OP_GOERLI_RPC="${{ secrets.OP_GOERLI_RPC }}" >> .env
echo OP_MAINNET_DEPLOYER_PK="${{ secrets.TEST_DEPLOYER_PK }}" >> .env
echo OP_GOERLI_DEPLOYER_PK="${{ secrets.TEST_DEPLOYER_PK }}" >> .env
echo ARB_GOERLI_RPC="${{ secrets.ARB_GOERLI_RPC }}" >> .env
echo ARB_MAINNET_RPC="${{ secrets.ARB_MAINNET_RPC }}" >> .env
cat .env
- name: Run Forge tests
run: |
forge test -vvv
id: test