Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: Move CI to GH actions #609

Merged
merged 4 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ci_contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: contracts

on: [push, pull_request]

jobs:
CI:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install node
uses: actions/setup-node@v1
with:
node-version: 10
sohkai marked this conversation as resolved.
Show resolved Hide resolved
- name: yarn install --frozen-lockfile
run: yarn install
- name: lint
run: yarn lint
- name: test
run: yarn test
- name: coverage
run: yarn coverage
- name: test:gas
continue-on-error: true
run: yarn test:gas:ci
env:
CI: true
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"scripts": {
"compile": "truffle compile",
"lint": "solium --dir ./contracts",
"test": "TRUFFLE_TEST=true npm run test:ganache-cli",
"test": "TRUFFLE_TEST=true yarn test:ganache-cli",
"test:gas": "GAS_REPORTER=true npm test",
"test:gas:ci": "npm run test:gas && npx codechecks",
"test:gas:ci": "yarn test:gas && npx codechecks",
"test:ganache-cli": "./node_modules/@aragon/contract-helpers-test/scripts/ganache-cli.sh",
"coverage": "SOLIDITY_COVERAGE=true npm run test:ganache-cli",
"coverage": "SOLIDITY_COVERAGE=true yarn test:ganache-cli",
"abi:extract": "truffle-extract --output abi/ --keys abi",
"bytecode:extract": "truffle-bytecode extract -o bytecode",
"bytecode:extract:new": "truffle-bytecode extract -o bytecode_new",
"bytecode:compare": "npm run bytecode:extract:new && truffle-bytecode compare bytecode bytecode_new",
"prepublishOnly": "truffle compile --all && npm run abi:extract -- --no-compile"
"bytecode:compare": "yarn bytecode:extract:new && truffle-bytecode compare bytecode bytecode_new",
"prepublishOnly": "truffle compile --all && yarn abi:extract -- --no-compile"
},
"dependencies": {},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ The [reference documentation](https://hack.aragon.org/docs/aragonos-ref.html) ex
## Development

```sh
npm install
npm test
yarn install
yarn test

# Lint needs to pass as well
npm run lint
yarn run lint
```