more log lines #226
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push] | |
name: ci | |
jobs: | |
install: | |
name: Install dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn install --network-concurrency 1 | |
if: ${{ steps.yarn-cache.outputs.cache-hit != 'true' }} | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn benchmark | |
lint-ts: | |
name: Typescript lint | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn lint:ts | |
lint-sol: | |
name: Solidity lint | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn lint:sol | |
test: | |
name: Test contracts | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn test | |
slither: | |
name: Slither test | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: | | |
npx hardhat compile | |
cp -r ./src/artifacts/ ./artifacts/ | |
cp -r ./src/contracts/ ./contracts/ | |
- uses: crytic/[email protected] | |
# coverage: | |
# name: Coverage | |
# runs-on: ubuntu-latest | |
# needs: [install] | |
# steps: | |
# - uses: actions/checkout@v1 | |
# - uses: actions/setup-node@v1 | |
# with: | |
# node-version: 18 | |
# - uses: actions/cache@master | |
# id: yarn-cache | |
# with: | |
# path: | | |
# node_modules | |
# */*/node_modules | |
# key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
# - run: yarn coverage || true | |
# - name: Coveralls | |
# uses: coverallsapp/github-action@master | |
# with: | |
# github-token: ${{ secrets.GITHUB_TOKEN }} | |
build: | |
name: Is latest build commited? | |
runs-on: ubuntu-latest | |
needs: [install] | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 18.15 | |
- uses: actions/cache@master | |
id: yarn-cache | |
with: | |
path: | | |
node_modules | |
*/*/node_modules | |
key: ${{ runner.os }}-lerna-${{ hashFiles('**/package.json', '**/yarn.lock') }} | |
- run: yarn test | |
- run: git diff --exit-code |