File tree Expand file tree Collapse file tree 3 files changed +1390
-99
lines changed
Expand file tree Collapse file tree 3 files changed +1390
-99
lines changed Original file line number Diff line number Diff line change 1+ name : concurrency
2+
3+ on :
4+ push :
5+ branches :
6+ - dev
7+ pull_request :
8+
9+ env :
10+ FOUNDRY_PROFILE : ci
11+
12+ jobs :
13+ test :
14+ strategy :
15+ fail-fast : true
16+
17+ name : Mock Concurrency tests
18+ runs-on : ubuntu-latest
19+ steps :
20+ - uses : actions/checkout@v4
21+ with :
22+ submodules : recursive
23+
24+ - name : Install Foundry
25+ uses : foundry-rs/foundry-toolchain@v1
26+
27+ - name : Show anvil version
28+ run : |
29+ anvil --version
30+
31+ - name : Start Anvil in background
32+ run : |
33+ nohup anvil --host 127.0.0.1 --port 8545 > anvil.log 2>&1 &
34+ echo $! > anvil.pid
35+ for i in {1..10}; do
36+ if nc -z 127.0.0.1 8545; then
37+ echo "Anvil is up"
38+ break
39+ fi
40+ echo "Waiting for Anvil to start..."
41+ sleep 1
42+ done
43+
44+ - name : Run Concurrency tests
45+ run : |
46+ cd scripts/ecdsa/mock && ./concurrency_test.sh
47+
48+ - name : " Add test summary"
49+ run : |
50+ echo "## Tests result" >> $GITHUB_STEP_SUMMARY
51+ echo "✅ Passed" >> $GITHUB_STEP_SUMMARY
You can’t perform that action at this time.
0 commit comments