Add solana implementation #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |