Skip to content
Open
Show file tree
Hide file tree
Changes from all 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
21 changes: 9 additions & 12 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,23 @@ jobs:

steps:
- name: Check out github repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}

- name: Install node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: yarn
cache-dependency-path: "**/yarn.lock"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Hardhat compile
run: yarn compile

- name: Run linter
run: yarn lint:check

Expand All @@ -36,9 +33,9 @@ jobs:

steps:
- name: Check out github repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Run commitlint
uses: wagoid/commitlint-github-action@v2
uses: wagoid/commitlint-github-action@v5
47 changes: 17 additions & 30 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,22 +11,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out github repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}

- name: Install node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: yarn
cache-dependency-path: "**/yarn.lock"

- name: Install dependencies
run: yarn --frozen-lockfile
Expand All @@ -39,30 +33,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out github repository
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 1

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: "**/node_modules"
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}

- name: Cache hardhat network fork
uses: actions/cache@v2
env:
cache-name: cache-hardhat-network-fork
with:
path: cache/hardhat-network-fork
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('test/integration/fork-block-numbers.ts') }}

- name: Install node
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: "16.x"
cache: yarn
cache-dependency-path: "**/yarn.lock"

# - name: Cache hardhat network fork
# uses: actions/cache@v3
# id: cache-hardhat-network-fork
# with:
# path: cache/hardhat-network-fork
# key: ${{ runner.os }}-hh-fork-${{ hashFiles('test/integration/fork-block-numbers.ts') }}

- name: Install dependencies
run: yarn --frozen-lockfile
Expand All @@ -71,7 +58,7 @@ jobs:
run: yarn test:integration
env:
TS_NODE_SKIP_IGNORE: true
ETH_NODE_URI_ETHEREUM: https://rpc.ankr.com/eth
ETH_NODE_URI_ETHEREUM: https://eth.llamarpc.com/rpc/${{ secrets.LLAMA_NODES_KEY }}
ETH_NODE_URI_OPTIMISM: https://rpc.ankr.com/optimism
ETH_NODE_URI_OPTIMISM_KOVAN: https://opt-kovan.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}
ETH_NODE_URI_POLYGON: https://polygon-mainnet.g.alchemy.com/v2/${{ secrets.ALCHEMY_API_KEY }}
ETH_NODE_URI_POLYGON: https://polygon.llamarpc.com/rpc/${{ secrets.LLAMA_NODES_KEY }}