Skip to content

Commit

Permalink
ci: run tests in isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyar committed Nov 23, 2022
1 parent 5d7556f commit 64c89ec
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
5 changes: 2 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
ROPSTEN_URL=https://eth-ropsten.alchemyapi.io/v2/<YOUR ALCHEMY KEY>
PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1
FORK_MAINNET=
QUICK_NODE_KEY=
FORK_MAINNET=false
QUICK_NODE_KEY=
3 changes: 3 additions & 0 deletions .env.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ETHERSCAN_API_KEY=ABC123ABC123ABC123ABC123ABC123ABC1
PRIVATE_KEY=0xabc123abc123abc123abc123abc123abc123abc123abc123abc123abc123abc1
FORK_MAINNET=false
10 changes: 1 addition & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
build:
runs-on: ubuntu-18.04
env:
FORK_MAINNET: ${{ secrets.FORK_MAINNET }}
QUICK_NODE_KEY: ${{ secrets.QUICK_NODE_KEY }}
NODE_OPTIONS: --max-old-space-size=4096
steps:
- uses: actions/checkout@v2
Expand All @@ -46,15 +44,9 @@ jobs:
- name: Install solidity
run: yarn global add [email protected]

- name: "Create env file"
run: |
touch .env
echo FORK_MAINNET=${{ secrets.FORK_MAINNET }} >> .env
echo QUICK_NODE_KEY=${{ secrets.QUICK_NODE_KEY }} >> .env
- name: Run hardhat compile and tests coverage
run: |
source .env
source .env.test
yarn hardhat:compile && yarn hardhat:coverage
- name: Code Coverage Report
Expand Down

0 comments on commit 64c89ec

Please sign in to comment.