-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (44 loc) · 1.22 KB
/
anchor-test.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
41
42
43
44
45
46
47
48
49
name: Anchor Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
anchor-test:
runs-on: ubuntu-latest
timeout-minutes: 20
# from https://github.com/ochaloup/projectserum-build-docker
container: docker.io/ochaloup/projectserum-build:v0.29.0_sol1.16.17_avm
steps:
- name: /root/.cargo to PATH
run: |
echo '/root/.cargo/bin/' >> $GITHUB_PATH
echo '/root/.avm/bin' >> $GITHUB_PATH
ln -s /root/.avm $HOME/
mkdir -p $HOME/.config
ln -s /root/.config/solana $HOME/.config/
- name: Info on AVM
run: |
avm list
avm use 0.29.0
- name: Checkout project
uses: actions/checkout@v4
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: 8
- name: Set nightly toolchain
run: rustup default nightly
- name: List rustup toolchains
run: rustup toolchain list
- name: Check solana config
run: solana config get
- name: Running tests for project
run: |
pnpm install
pnpm test