File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change 6969 env :
7070 TEST_TYPE : ${{ matrix.type }}
7171 GITHUB_ETHERSCAN : ${{ secrets.GITHUB_ETHERSCAN }}
72+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7273 shell : bash
7374 run : |
7475 bash "scripts/ci_test_${TEST_TYPE}.sh"
Original file line number Diff line number Diff line change @@ -7,27 +7,44 @@ cd "$DIR" || exit 255
77
88solc-select use 0.4.25 --always-install
99
10+ delay_no_key () {
11+ # Perform a small sleep when API key is not available (e.g. on PR CI from external contributor)
12+ if [ " $GITHUB_ETHERSCAN " = " " ]; then
13+ sleep 5s
14+ fi
15+ }
16+
17+ echo " ::group::Etherscan mainnet"
1018crytic-compile 0x7F37f78cBD74481E593F9C737776F7113d76B315 --compile-remove-metadata --etherscan-apikey " $GITHUB_ETHERSCAN "
1119
1220if [ $? -ne 0 ]
1321then
14- echo " Etherscan test failed"
22+ echo " Etherscan mainnet test failed"
1523 exit 255
1624fi
25+ echo " ::endgroup::"
1726
27+ delay_no_key
28+
29+ echo " ::group::Etherscan rinkeby"
1830crytic-compile rinkeby:0xFe05820C5A92D9bc906D4A46F662dbeba794d3b7 --compile-remove-metadata --etherscan-apikey " $GITHUB_ETHERSCAN "
1931
2032if [ $? -ne 0 ]
2133then
22- echo " Etherscan test failed"
34+ echo " Etherscan rinkeby test failed"
2335 exit 255
2436fi
37+ echo " ::endgroup::"
38+
39+ delay_no_key
2540
2641# From crytic/slither#1154
42+ echo " ::group::Etherscan #3"
2743crytic-compile 0xcfc1E0968CA08aEe88CbF664D4A1f8B881d90f37 --compile-remove-metadata --etherscan-apikey " $GITHUB_ETHERSCAN "
2844
2945if [ $? -ne 0 ]
3046then
31- echo " Etherscan test failed"
47+ echo " Etherscan #3 test failed"
3248 exit 255
3349fi
50+ echo " ::endgroup::"
You can’t perform that action at this time.
0 commit comments