Skip to content

Commit

Permalink
consolidate .env
Browse files Browse the repository at this point in the history
  • Loading branch information
jahabeebs committed Dec 14, 2023
1 parent 77b642a commit 22759b0
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ concurrency:

env:
FOUNDRY_PROFILE: ci
OP_MAINNET_RPC: ${{ secrets.OP_MAINNET_RPC }}
OP_GOERLI_RPC: ${{ secrets.OP_GOERLI_RPC }}
OP_MAINNET_DEPLOYER_PK: ${{ secrets.TEST_DEPLOYER_PK }}
OP_GOERLI_DEPLOYER_PK: ${{ secrets.TEST_DEPLOYER_PK }}
ARB_GOERLI_RPC: ${{ secrets.ARB_GOERLI_RPC }}
ARB_MAINNET_RPC: ${{ secrets.ARB_MAINNET_RPC }}

jobs:
check:
Expand All @@ -32,17 +38,6 @@ jobs:
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
Expand Down

0 comments on commit 22759b0

Please sign in to comment.