File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ agents :
2+ queue : normal
3+ steps :
4+ - label : " :foundry: Test Sequence V3 Contracts"
5+ key : " test-foundry"
6+ commands :
7+ - |
8+ # Check if GITHUB_SSH_KEY is set
9+ if [ -z "$GITHUB_SSH_KEY" ]; then
10+ echo "Error: GITHUB_SSH_KEY is not set"
11+ exit 1
12+ fi
13+
14+ # Setup SSH key
15+ mkdir -p ~/.ssh
16+ echo "$GITHUB_SSH_KEY" > ~/.ssh/id_rsa
17+ chmod 600 ~/.ssh/id_rsa
18+ ssh-keyscan github.com >> ~/.ssh/known_hosts
19+
20+ # Install Foundry
21+ curl -L https://foundry.paradigm.xyz | bash
22+ source ~/.bashrc
23+ foundryup
24+
25+ # Clone private repo using SSH
26+ git clone [email protected] :0xsequence/sequence-v3.git 27+ cd sequence-v3
28+
29+ # Install dependencies and run tests
30+ forge install
31+ forge test -vvv
32+
33+ # Cleanup SSH key
34+ rm -f ~/.ssh/id_rsa
35+ plugins :
36+ - docker#v5.3.0:
37+ image : " ubuntu:22.04"
38+ environment :
39+ - " GITHUB_SSH_KEY"
40+ - " FOUNDRY_PROFILE=default"
You can’t perform that action at this time.
0 commit comments