-
Notifications
You must be signed in to change notification settings - Fork 22
45 lines (42 loc) · 1.26 KB
/
run_examples.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
on:
workflow_dispatch:
pull_request:
push:
branches: [master]
name: Test Escrow and Turnstile
env:
SOLANA_CLI_VERSION: 1.16.6
ANCHOR_VERSION: 0.28.0
jobs:
test_escrow:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Escrow
working-directory: examples/escrow
run: anchor build
- name: Test Escrow
working-directory: examples/escrow
run: cargo run --manifest-path ../../Cargo.toml test
test_turnstile:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Turnstile
working-directory: examples/turnstile
run: anchor build
- name: Test Turnstile
working-directory: examples/turnstile
run: cargo run --manifest-path ../../Cargo.toml test