-
Notifications
You must be signed in to change notification settings - Fork 45
42 lines (37 loc) · 1.03 KB
/
solana.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
name: Solana CI
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- dev
jobs:
solana-sbf:
name: Solana Cargo SBF
runs-on: ubuntu-latest
container: backpackapp/build:v0.29.0
env:
RUSTFLAGS: -Dwarnings
steps:
- uses: actions/checkout@v3
- name: Run `cargo fmt`
run: cargo fmt --check --all --manifest-path solana/Cargo.toml
working-directory: ./solana
- name: Run `cargo check`
run: cargo check --workspace --tests --manifest-path solana/Cargo.toml
working-directory: ./solana
- name: Run `cargo clippy`
run: cargo clippy --workspace --tests --manifest-path solana/Cargo.toml
working-directory: ./solana
- name: make build
run: make build
working-directory: ./solana
- name: cargo test-sbf
env:
RUST_BACKTRACE: "1"
run: cargo test-sbf
working-directory: ./solana
- name: make anchor-test
run: make anchor-test
working-directory: ./solana