Skip to content

add check_deployments script #578

add check_deployments script

add check_deployments script #578

Workflow file for this run

name: Test CI
on:
push:
branches: [main, v2]
tags: ["*"]
pull_request:
types: [opened, reopened, synchronize]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
lint:
name: Run Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "yarn"
- run: yarn install
- run: yarn lint:check
hardhat-test:
name: Run Hardhat Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "yarn"
- run: yarn install
- run: yarn build
- run: yarn test
# TODO get this working
# hardhat-test-upgradeable:
# name: Run Hardhat Upgradeable Tests
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
#
# - name: Use Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 16.x
# cache: "yarn"
#
# - run: yarn install
# - run: yarn build
# - run: yarn test:upgradeable
hardhat-coverage:
name: Run Hardhat Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 16.x
cache: "yarn"
- run: yarn install
- run: yarn build
- run: yarn coverage
- name: Submit coverage to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: hardhat
parallel: true
forge-test:
name: Run Forge Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Install forge dependencies
run: forge install
- name: Build contracts
run: yarn build:foundry
- name: Run tests
run: forge test -vvv
env:
ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }}
# TODO re-enable when `forge coverage` starts working
# from "Stack too deep" in Seaport contracts
# https://github.com/foundry-rs/foundry/issues/3357
# forge-coverage:
# name: Run Forge Coverage
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: recursive
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly
# - name: Install forge dependencies
# run: forge install
# - name: Build contracts
# run: yarn build:foundry
# - name: Run coverage
# run: yarn coverage:forge
# env:
# ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
# GOERLI_RPC_URL: ${{ secrets.GOERLI_RPC_URL }}
# - name: Submit coverage to Coveralls
# uses: coverallsapp/github-action@master
# with:
# github-token: ${{ secrets.GITHUB_TOKEN }}
# path-to-lcov: ./lcov-filtered.info
# flag-name: foundry
# parallel: true
coverage-finish:
name: Finish Coverage Results
needs: [hardhat-coverage] # forge-coverage
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
parallel-finished: true