Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
coveralls running locally but all networks on the hardhat.config have…
Browse files Browse the repository at this point in the history
… to be commented out
  • Loading branch information
brendaloya committed Mar 31, 2021
1 parent 867c106 commit 9ed92e3
Show file tree
Hide file tree
Showing 39 changed files with 15,732 additions and 5,007 deletions.
78 changes: 26 additions & 52 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,38 +8,26 @@ on:
pull_request:

jobs:
# Tests:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Run tests
# uses: actions/setup-node@v1
# with:
# node-version: '14.x'
# - run: npm install
# - run: npx hardhat test
# env:
# CI: true
# # These are not needed for the tests but
# # hardhat fails to start when not present.
# NODE_URL_RINKEBY: ${{ secrets.RINKEBY_NODE }}
# NODE_URL_MAINNET: ${{ secrets.MAINNET_NODE }}
# PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
# #NODE_URL_RINKEBY: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# #NODE_URL_MAINNET: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# #PRIVATE_KEY: "00000000000000000000000000000000000000000000000000"
# Linting:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Run Solhint
# uses: actions/setup-node@v1
# with:
# node-version: '14.x'
# - run: npm install -g solhint
# - run: make solhint

Tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: actions/setup-node@v1
with:
node-version: '14.x'
- run: npm install
- run: npx hardhat test
env:
CI: true
# These are not needed for the tests but
# hardhat fails to start when not present.
NODE_URL_RINKEBY: ${{ secrets.RINKEBY_NODE }}
NODE_URL_MAINNET: ${{ secrets.MAINNET_NODE }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
#NODE_URL_RINKEBY: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#NODE_URL_MAINNET: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
#PRIVATE_KEY: "00000000000000000000000000000000000000000000000000"
coverage:
runs-on: ubuntu-latest

Expand All @@ -56,23 +44,9 @@ jobs:
uses: coverallsapp/github-action@v1.1.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
# Security:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Slither Static Analysis
# uses: actions/setup-node@v1
# with:
# node-version: '14.x'
# - run: npm install
# - run: sudo apt-get install python3-setuptools
# - run: wget https://github.com/ethereum/solidity/releases/download/v0.7.6/solc-static-linux && sudo mv solc-static-linux /usr/bin/solc && sudo chmod 744 /usr/bin/solc
# - run: git clone https://github.com/crytic/slither.git && cd slither && sudo python3 setup.py install
# - run: make slither
# env:
# # These are not needed for the tests but
# # hardhat fails to start when not present.
# NODE_URL_RINKEBY: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# NODE_URL_MAINNET: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
# PRIVATE_KEY: "00000000000000000000000000000000000000000000000000"
env:
# These are not needed for the tests but
# hardhat fails to start when not present.
NODE_URL_RINKEBY: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
NODE_URL_MAINNET: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
PRIVATE_KEY: "00000000000000000000000000000000000000000000000000"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/be630f16223b3a0e91aff14d54f322b9.json"
"buildInfo": "../../../../build-info/51f15aea59c742b9698a8d4a2653bdef.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/be630f16223b3a0e91aff14d54f322b9.json"
"buildInfo": "../../../../build-info/51f15aea59c742b9698a8d4a2653bdef.json"
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/be630f16223b3a0e91aff14d54f322b9.json"
"buildInfo": "../../../../build-info/51f15aea59c742b9698a8d4a2653bdef.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"contractName": "Address",
"sourceName": "@openzeppelin/contracts/utils/Address.sol",
"abi": [],
"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220bf4d9c20cf9f5d209028eac65924dde1de29811bc95443418f1061ee88e2c5c264736f6c63430007000033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220bf4d9c20cf9f5d209028eac65924dde1de29811bc95443418f1061ee88e2c5c264736f6c63430007000033",
"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a086234c04844d5dc8756f7a9e5475bf739511b3164e8922feac536a76382c6f64736f6c63430007000033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a086234c04844d5dc8756f7a9e5475bf739511b3164e8922feac536a76382c6f64736f6c63430007000033",
"linkReferences": {},
"deployedLinkReferences": {}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"_format": "hh-sol-dbg-1",
"buildInfo": "../../../../build-info/be630f16223b3a0e91aff14d54f322b9.json"
"buildInfo": "../../../../build-info/51f15aea59c742b9698a8d4a2653bdef.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"contractName": "EnumerableSet",
"sourceName": "@openzeppelin/contracts/utils/EnumerableSet.sol",
"abi": [],
"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e9934c6bd6b261c667391bb7f74d4026f4fc53401d39510c808acfbe0b998d2a64736f6c63430007000033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220e9934c6bd6b261c667391bb7f74d4026f4fc53401d39510c808acfbe0b998d2a64736f6c63430007000033",
"bytecode": "0x60566023600b82828239805160001a607314601657fe5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122068acffbcec76709ef75cef27a93ffc77240995a099d143ef05563a02fc58ca9964736f6c63430007000033",
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122068acffbcec76709ef75cef27a93ffc77240995a099d143ef05563a02fc58ca9964736f6c63430007000033",
"linkReferences": {},
"deployedLinkReferences": {}
}

Large diffs are not rendered by default.

0 comments on commit 9ed92e3

Please sign in to comment.