Skip to content

Commit acd3e50

Browse files
test12
1 parent 4763bb1 commit acd3e50

File tree

1 file changed

+14
-53
lines changed

1 file changed

+14
-53
lines changed

.github/workflows/e2e.yml

Lines changed: 14 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -12,84 +12,45 @@ on:
1212
jobs:
1313
e2e-test:
1414
runs-on: ubuntu-latest
15-
15+
1616
steps:
17-
# ----------------------
18-
# Checkout code
19-
# ----------------------
2017
- name: Checkout code
2118
uses: actions/checkout@v4
2219

23-
# ----------------------
24-
# Install Foundry
25-
# ----------------------
2620
- name: Install Foundry
2721
uses: foundry-rs/foundry-toolchain@v1
2822

29-
# ----------------------
30-
# Install Rust & Anchor
31-
# ----------------------
32-
- name: Install Rust & Anchor CLI
33-
run: |
34-
# Install Rust
35-
curl https://sh.rustup.rs -sSf | sh -s -- -y
36-
source $HOME/.cargo/env
37-
38-
# Add wasm target for Solana programs
39-
rustup target add wasm32-unknown-unknown
40-
41-
# Install system dependencies for wasm-bindgen
42-
sudo apt-get update
43-
sudo apt-get install -y pkg-config build-essential libudev-dev
44-
45-
# Install Anchor CLI
46-
cargo install --git https://github.com/coral-xyz/anchor --tag v0.27.0 anchor-cli --locked
47-
48-
# Add Cargo bin to PATH
49-
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
50-
51-
- name: Verify Anchor Installation
52-
run: anchor --version
53-
54-
# ----------------------
55-
# Install Solana CLI
56-
# ----------------------
5723
- name: Install Solana CLI
5824
run: |
5925
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
60-
echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
26+
27+
- name: Ensure PATH includes Solana
28+
run: echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
6129

62-
- name: Check Solana version
30+
- name: Check solana version
6331
run: solana --version
64-
65-
# ----------------------
66-
# Start Solana Test Validator
67-
# ----------------------
32+
6833
- name: Start Solana Test Validator
6934
run: |
7035
solana-test-validator --reset --rpc-port 8899 --limit-ledger-size 50000000 --url https://api.devnet.solana.com \
7136
--clone ETGtqwDKEm1Z9gq6FdvYUfyDuUZr7g4UdPSmyNLVGriX \
7237
--clone 7UVimffxr9ow1uXYxsr4LHAcV58mLzhmwaeKvJ1pjLiE &
38+
- name: Install Anchor CLI
39+
run: cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
40+
- name: Add Anchor to PATH
41+
run: echo "$HOME/.cargo/bin" >> $GITHUB_PATH
42+
7343

7444
- name: Wait for validator to start
7545
run: sleep 10
76-
77-
# ----------------------
78-
# Set Solana Keypair
79-
# ----------------------
46+
8047
- name: Set Solana Keypair
8148
run: solana config set --keypair "$(pwd)/.github/Solana-key.json"
8249

83-
# ----------------------
84-
# Run E2E Tests
85-
# ----------------------
8650
- name: Run E2E Tests
8751
run: make e2e
8852
env:
89-
PATH: $HOME/.local/share/solana/install/active_release/bin:$HOME/.cargo/bin:/usr/local/bin:/usr/bin:/bin
90-
91-
# ----------------------
92-
# Stop Solana Test Validator
93-
# ----------------------
53+
PATH: $HOME/.local/share/solana/install/active_release/bin:/usr/local/bin:/usr/bin:/bin
54+
9455
- name: Stop Solana Test Validator
9556
run: pkill solana-test-validator || true

0 commit comments

Comments
 (0)