Skip to content

Commit

Permalink
Merge Dev Branch (#2)
Browse files Browse the repository at this point in the history
* first commit

* upgrade to ethers V6 (#1)

* chore: switch to npm

* lint and ci

* build source before lint

* switch to coveralls

* increase coverage

* extend coverage

* fix lint

* full coverage governor bravo delegate

* full coverage delegator

* run coverage on timelock
  • Loading branch information
arr00 authored Jun 21, 2023
1 parent c2bdba7 commit 10bcbd4
Show file tree
Hide file tree
Showing 20 changed files with 14,735 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
artifacts
cache
coverage
typechain-types
14 changes: 14 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
env: {
browser: false,
es2021: true,
mocha: true,
node: true,
},
plugins: ["@typescript-eslint"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12,
},
};
54 changes: 54 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: compound-governance

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run Tests
run: npm test
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Run Coverage
run: npm run coverage
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: build source
run: npm run build
- name: Run Lint
run: npm run lint:check
10 changes: 10 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
node_modules
.env
coverage
coverage.json
typechain
typechain-types
cache
artifacts
yarn-error.log
.DS_Store
6 changes: 6 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
artifacts
cache
coverage*
contracts*
typechain-types
3 changes: 3 additions & 0 deletions .solcover.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
skipFiles: ["GovernorAlpha.sol", "SafeMath.sol"],
};
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
[![ci](https://github.com/compound-finance/compound-governance/actions/workflows/test.yaml/badge.svg)](https://github.com/compound-finance/compound-governance/actions/workflows/test.yaml)
[![Coverage Status](https://coveralls.io/repos/github/compound-finance/compound-governance/badge.svg?t=thm1Vz)](https://coveralls.io/github/compound-finance/compound-governance)
# Compound Governance
This repository hosts the up to date contracts for the Compound Protocol governance system.

## Running
### Setup
- `yarn install`
- `npm install`
### Tests
- `yarn test`
- `npm test`
### Coverage
- `yarn coverage`
- `npm run coverage`

Loading

0 comments on commit 10bcbd4

Please sign in to comment.