mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
1.1 KiB
54 lines
1.1 KiB
---
|
|
name: Test slither-read-storage
|
|
|
|
defaults:
|
|
run:
|
|
# To load bashrc
|
|
shell: bash -ieo pipefail {0}
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [master, dev]
|
|
schedule:
|
|
# run CI every day even if no PRs/merges occur
|
|
- cron: '0 12 * * *'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Test slither-read-storage
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Setup node
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: '14'
|
|
|
|
- name: Install ganache
|
|
run: npm install --global ganache
|
|
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.8
|
|
|
|
- name: Install python dependencies
|
|
run: |
|
|
pip install ".[dev]"
|
|
pip install web3
|
|
solc-select install 0.8.1
|
|
solc-select install 0.8.10
|
|
solc-select use 0.8.1
|
|
|
|
- name: Run slither-read-storage
|
|
run: |
|
|
pytest tests/test_read_storage.py
|
|
|
|
- name: Run storage layout tests
|
|
run: |
|
|
pytest tests/test_storage_layout.py
|
|
|