Skip to content

feat: add ts publish example #41

feat: add ts publish example

feat: add ts publish example #41

name: "Lazer Solana Test"
on:
push:
branches:
- main
pull_request:
jobs:
lazer-solana-test:
name: Lazer Solana Test
runs-on: ubuntu-22.04
defaults:
run:
working-directory: lazer/solana
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
components: clippy, rustfmt
- name: install extra tools
run: |
cargo install --locked taplo-cli@0.9.3
sudo apt-get install -y protobuf-compiler
- 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: check Cargo.toml formatting
run: find . -name Cargo.toml -exec taplo fmt --check --diff {} \;
- name: check Rust formatting
run: cargo +1.81.0 fmt --all
- name: check Rust clippy
run: cargo +1.81.0 clippy --all-targets -- --deny warnings
- name: Build Solana programs
run: cargo build-sbf
- name: test
run: cargo test