-
Notifications
You must be signed in to change notification settings - Fork 213
48 lines (48 loc) · 1.3 KB
/
ci-turbo-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
name: Turbo test
on:
pull_request:
paths:
- "**.tsx?"
- "**.jsx?"
- "**.json"
- "**.sol"
- "**/package.json"
- "**/package-lock.json"
- "**/tsconfig.json"
push:
branches: [main]
paths:
- "**.tsx?"
- "**.jsx?"
- "**.json"
- "**.sol"
- "**/package.json"
- "**/package-lock.json"
- "**/tsconfig.json"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: "package.json"
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- name: Install Solana Cli
run: |
sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
echo "$HOME/.local/share/solana/install/active_release/bin" >> "$GITHUB_PATH"
- name: Set Solana Cli version
run: agave-install init 1.18.26
- name: Create Solana key
run: solana-keygen new --no-bip39-passphrase
- name: Install Anchor
run: RUSTFLAGS= cargo install --git https://github.com/coral-xyz/anchor --tag v0.30.1 anchor-cli
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: true
- name: Test
run: pnpm test:ci