Skip to content

Commit d13cf99

Browse files
committed
chore: ini buildkite
1 parent dd0bde7 commit d13cf99

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.buildkite/pipeline.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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"

0 commit comments

Comments
 (0)