Skip to content

Commit

Permalink
CI forked tests action
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabasco committed May 3, 2024
1 parent c140c3c commit 21fef78
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/tests-forked.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Run tests

on: [push]

jobs:
ci:
runs-on: ubuntu-latest
name: Hardhat unit test
env: # Set environment variables for all steps in this job
GH_TOKEN: ${{ secrets.github_token }}
FORK_TESTING_ENABLED: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
- run: npm ci
- run: npx hardhat test test-forked/*.ts
4 changes: 2 additions & 2 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import '@openzeppelin/hardhat-upgrades';

import 'hardhat-abi-exporter';
import 'hardhat-contract-sizer';
import 'solidity-coverage'
import 'solidity-coverage';

import './tasks/deploy';
import './tasks/update-module';
Expand Down Expand Up @@ -50,7 +50,7 @@ const config: HardhatUserConfig = {
} as SSVNetworkConfig,
hardhat: {
forking: {
enabled: process.env.FORK_TESTING_ENABLED ? true : false,
enabled: process.env.FORK_TESTING_ENABLED === 'true',
url: process.env.MAINNET_ETH_NODE_URL,
blockNumber: 19621100,
},
Expand Down

0 comments on commit 21fef78

Please sign in to comment.