Skip to content

Update README.md

Update README.md #2

name: CI
on: [push]
jobs:
ci:
name: Lint & Test
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/cache@v3
with:
path: "**/node_modules"
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Yarn dependencies
run: yarn install
- name: Run solhint
run: yarn solhint
- name: Run prettier
run: yarn prettier
- name: Hardhat clean
run: npx hardhat clean
- name: Compile contracts
run: yarn compile
- name: Run tests
env:
ETHEREUM_RPC_URL: ${{ secrets.ETHEREUM_RPC_URL }}
run: |
yarn test