-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.22 KB
/
run-tests.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
50
51
name: Run Tests
on:
push:
branches:
- main
pull_request:
env:
solana_version: v1.18.8
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: install rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache rust
uses: Swatinem/rust-cache@v2
- uses: actions/checkout@v4
- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: 20
- name: Cache node dependencies
uses: actions/cache@v3
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: install node_modules
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
yarn --frozen-lockfile
- name: run build
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm install -g @magicblock-labs/bolt-cli
bolt build
- name: run tests
run: |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH"
npm install -g @magicblock-labs/bolt-cli
bolt test