-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ebab00
commit 9748522
Showing
10 changed files
with
6,465 additions
and
8,229 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12' | ||
|
||
# Restore the yarn cache | ||
- uses: c-hive/gha-yarn-cache@v1 | ||
|
||
- name: Yarn install | ||
run: yarn install | ||
|
||
- name: Linter | ||
run: yarn lint | ||
|
||
- name: Compile | ||
run: yarn compile | ||
|
||
- name: Test | ||
run: yarn test | ||
|
||
- name: Coverage | ||
run: yarn coverage |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
require("@nomiclabs/hardhat-truffle5"); | ||
require("solidity-coverage") | ||
|
||
|
||
// Define mnemonic for accounts. | ||
let mnemonic = process.env.MNEMONIC; | ||
if (!mnemonic) { | ||
// NOTE: this fallback is for development only! | ||
// When using other networks, set the secret in .env. | ||
// DO NOT commit or share your mnemonic with others! | ||
mnemonic = 'test test test test test test test test test test test test'; | ||
} | ||
|
||
const accounts = { mnemonic }; | ||
|
||
// Config for hardhat. | ||
module.exports = { | ||
solidity: { version: '0.6.12' }, | ||
networks: { | ||
hardhat: { | ||
accounts, | ||
}, | ||
localhost: { | ||
url: 'http://localhost:8545', | ||
accounts, | ||
}, | ||
staging: { | ||
url: 'https://goerli.infura.io/v3/' + process.env.INFURA_TOKEN, | ||
accounts, | ||
}, | ||
}, | ||
paths: { | ||
sources: 'contracts', | ||
}, | ||
}; |
Oops, something went wrong.