feat(ci): add solita step? #6
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: program-build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
override: true | |
- name: Install Solana | |
run: | | |
sh -c "$(curl -sSfL https://release.solana.com/stable/install)" | |
export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" | |
- name: Build Program | |
run: cargo build --verbose | |
- name: Run Clippy | |
run: cargo clippy | |
- name: Run Solita | |
run: | | |
cd sdk | |
yarn solita |