-
Notifications
You must be signed in to change notification settings - Fork 49
40 lines (37 loc) · 1.23 KB
/
anchor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Anchor Test CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install libudev-dev
run: sudo apt-get update && sudo apt-get install libudev-dev
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "18.19.1"
- name: Npm install
run: npm ci
- name: Install Solana
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.16/install)"
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Install Solana Verify CLI
run: |
cargo install solana-verify --git https://github.com/Ellipsis-Labs/solana-verifiable-build --rev 098551f
- name: Javascript tests
working-directory: ./staking
run: npm run test:ci
# Remove debug folder to avoid hitting space limit in ci
- name: Clean up
working-directory: ./staking
run: rm -r ./target/debug
# Anchor test will build the program, so we can run the tests here
- name: Cargo tests
working-directory: ./staking
run: RUST_MIN_STACK=33554432 cargo test