-
Notifications
You must be signed in to change notification settings - Fork 44
97 lines (89 loc) · 2.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: Anchor Tests
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- "javascript/solana.js/**"
- "programs/**"
- "rust/switchboard-v2/**"
jobs:
vrfClientTests:
name: "VRF Client Tests"
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
shell: bash
strategy:
matrix:
nodeVersion: [18, 19.7]
steps:
- uses: actions/checkout@v3
- name: Setup Workspace
uses: ./.github/actions/setup-workspace
with:
solanaVersion: "v1.16.1"
anchorVersion: "0.28.0"
nodeVersion: ${{ matrix.nodeVersion }}
- name: Cache Build
id: cache-anchor-vrf-build
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./programs/anchor-vrf-parser/deploy
./programs/anchor-vrf-parser/target
key:
${{ runner.os }}-AnchorVrfParser-${{
hashFiles('./programs/anchor-vrf-parser/Cargo.toml',
'./programs/anchor-vrf-parser/src/**') }}
- name: Anchor Build
working-directory: examples/vrf/01_vrf_client
run: pnpm build
- name: Anchor Test
working-directory: examples/vrf/01_vrf_client
run: anchor test
feedClientTests:
name: "Feed Client Tests"
runs-on: ubuntu-latest
timeout-minutes: 25
defaults:
run:
shell: bash
strategy:
matrix:
nodeVersion: [18, 19.7]
steps:
- uses: actions/checkout@v3
- name: Setup Workspace
uses: ./.github/actions/setup-workspace
with:
solanaVersion: "v1.16.1"
anchorVersion: "0.28.0"
nodeVersion: ${{ matrix.nodeVersion }}
- name: Cache Build
id: cache-anchor-feed-build
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
./programs/anchor-feed-parser/deploy
./programs/anchor-feed-parser/target
key:
${{ runner.os }}-AnchorFeedParser-${{
hashFiles('./programs/anchor-feed-parser/Cargo.toml',
'./programs/anchor-feed-parser/src/**') }}
- name: Anchor Build
working-directory: examples/feeds/01_feed_client
run: pnpm build
- name: Anchor Test
working-directory: examples/feeds/01_feed_client
run: anchor test