Add slither-flat to the CI

pull/811/head
Josselin 4 years ago
parent 3e3bfc47a9
commit 346b759c9b
  1. 23
      .github/workflows/ci.yml
  2. 3
      examples/flat/a.sol
  3. 5
      examples/flat/b.sol
  4. 14
      scripts/ci_test_flat.sh

@ -21,18 +21,19 @@ jobs:
strategy:
matrix:
type: ["cli",
"data_dependency",
"embark",
"erc",
"etherlime",
"find_paths",
"kspec",
"printers",
"simil",
"slither_config",
"truffle",
"data_dependency",
"embark",
"erc",
"etherlime",
"find_paths",
"kspec",
"printers",
"simil",
"slither_config",
"truffle",
"upgradability",
"prop"]
"prop",
"flat"]
steps:
- uses: actions/checkout@v1
- 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,14 @@
#!/usr/bin/env bash
### Test slither-prop
cd examples/flat || exit 1
slither-flat b.sol
if [ $? -eq 0 ]
then
exit 0
fi
echo "slither-flat failed"
exit -1
Loading…
Cancel
Save