Merge pull request #811 from crytic/dev-flat-ci

Add slither-flat to the CI
pull/815/head
Feist Josselin 4 years ago committed by GitHub
commit 66e2c1b7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      .github/workflows/ci.yml
  2. 3
      examples/flat/a.sol
  3. 5
      examples/flat/b.sol
  4. 12
      scripts/ci_test_flat.sh

@ -21,18 +21,19 @@ jobs:
strategy: strategy:
matrix: matrix:
type: ["cli", type: ["cli",
"data_dependency", "data_dependency",
"embark", "embark",
"erc", "erc",
"etherlime", "etherlime",
"find_paths", "find_paths",
"kspec", "kspec",
"printers", "printers",
"simil", "simil",
"slither_config", "slither_config",
"truffle", "truffle",
"upgradability", "upgradability",
"prop"] "prop",
"flat"]
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v1
- name: Set up Python 3.6 - name: Set up Python 3.6

@ -0,0 +1,3 @@
contract A{
}

@ -0,0 +1,5 @@
import "./a.sol";
contract B is A{
}

@ -0,0 +1,12 @@
#!/usr/bin/env bash
### Test slither-prop
cd examples/flat || exit 1
if ! slither-flat b.sol; then
echo "slither-flat failed"
exit 1
fi
exit 0
Loading…
Cancel
Save