Merge branch 'master' into certora/erc1155ext. Resolved conflicts in

applyHarness by manually merging.
This commit is contained in:
Michael George
2022-05-25 16:04:16 -04:00
432 changed files with 14061 additions and 26638 deletions

View File

@ -12,7 +12,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 12.x
- uses: actions/cache@v2
- uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'

28
.github/workflows/slither.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Slither Analysis
on:
push:
branches:
- master
- release-v*
pull_request: {}
workflow_dispatch: {}
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12.x
- uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: npm-v2-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-v2-
- run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
- name: Clean project
run: npm run clean
- uses: crytic/slither-action@v0.1.1

View File

@ -16,7 +16,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 12.x
- uses: actions/cache@v2
- uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
@ -30,6 +30,7 @@ jobs:
FORCE_COLOR: 1
ENABLE_GAS_REPORT: true
- run: npm run test:inheritance
- run: npm run test:generation
- name: Print gas report
run: cat gas-report.txt
@ -42,7 +43,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 12.x
- uses: actions/cache@v2
- uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
@ -53,27 +54,4 @@ jobs:
- run: npm run coverage
env:
NODE_OPTIONS: --max_old_space_size=4096
- uses: codecov/codecov-action@v2
slither:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12.x
- uses: actions/cache@v2
id: cache
with:
path: '**/node_modules'
key: npm-v2-${{ hashFiles('**/package-lock.json') }}
restore-keys: npm-v2-
- run: npm ci
if: steps.cache.outputs.cache-hit != 'true'
- name: Set up Python
uses: actions/setup-python@v2
- name: Install dependencies
run: pip3 install slither-analyzer
- name: Summary of static analysis
run: npm run slither
- uses: codecov/codecov-action@v3