add env #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |