Skip to content

Commit

Permalink
Merge d4ddecc into c5d55ae
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewlilley committed Jan 11, 2022
2 parents c5d55ae + d4ddecc commit 7a893a0
Show file tree
Hide file tree
Showing 40 changed files with 909 additions and 380 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/certora.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
name: Certora

on:
# push:
# branches: [canary]
# pull_request:
# branches: [canary]
on:
push:
branches: [canary]
pull_request:
workflow_dispatch:

jobs:
Expand All @@ -14,10 +13,10 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Use Node.js 14 LTS
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -30,14 +29,17 @@ jobs:
key: ${{ runner.os }}-yarnv1-dist-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarnv1-dist-
- name: Installing dependencies
run: yarn install --frozen-lockfile

- name: Set up Python 3.6
uses: actions/setup-python@v2
with:
python-version: 3.6
- uses: actions/setup-java@v1

- name: Set up JRE 11
uses: actions/setup-java@v1
with:
java-version: "11"
java-package: jre
Expand Down
33 changes: 19 additions & 14 deletions .github/workflows/coveralls.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
name: Coveralls

# Controls when the action will run.
on: [push, pull_request]
on:
push:
branches: [canary]
pull_request:
workflow_dispatch:

jobs:
build:
name: Build
name: Coveralls
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 14 LTS
uses: actions/setup-node@v2
with:
node-version: '14'


- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Installing dependencies
run: yarn install --frozen-lockfile
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://npm.pkg.github.com'
scope: '@sushiswap'

- name: Yarn
run: yarn

- name: Compile
run: yarn build

- name: Test coverage
- name: Test
run: yarn test:coverage
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}

- name: Coveralls
uses: coverallsapp/github-action@master
Expand Down
23 changes: 14 additions & 9 deletions .github/workflows/gas.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
name: Gas

# Controls when the action will run.
on:
# push:
# branches: [canary]
# pull_request:
# branches: [canary]
push:
branches: [canary]
pull_request:
workflow_dispatch:

jobs:
build:
name: Build
gas:
name: Gas
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Use Node.js 14
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
Expand All @@ -40,3 +38,10 @@ jobs:
run: yarn test:gas
env:
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
COINMARKETCAP_API_KEY: ${{ secrets.COINMARKETCAP_API_KEY }}

- name: Codechecks
env:
CC_SECRET: ${{ secrets.CC_SECRET }}
COINMARKETCAP_API_KEY: ${{ secrets.COINMARKETCAP_API_KEY }}
run: npx codechecks
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release
on:
push:
branches:
- canary

jobs:
release-canary:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: 'https://npm.pkg.github.com'
scope: '@sushiswap'
- run: yarn
- run: yarn build
- run: yarn kovan:deploy
env:
MNEMONIC: ${{ secrets.TESTNET_MNEMONIC }}
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}
ALCHEMY_API_KEY: ${{ secrets.ALCHEMY_API_KEY }}
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }}
- run: yarn export:all
- run: |
git config user.name GitHub Actions
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
yarn version --prerelease --preid=canary
yarn publish --access public --tag canary
git add .
git push
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42 changes: 0 additions & 42 deletions .github/workflows/tests.yml

This file was deleted.

1 change: 1 addition & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
module.exports = {
require: "ts-node/register/files",
timeout: 20000,
parallel: true,
};
Loading

0 comments on commit 7a893a0

Please sign in to comment.