Skip to content

adds feature-gated serde traits to TransactionMetadata (#77) #171

adds feature-gated serde traits to TransactionMetadata (#77)

adds feature-gated serde traits to TransactionMetadata (#77) #171

Workflow file for this run

on:
push:
branches:
- master
pull_request:
branches:
- master
name: CI
jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/bin
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Solana CLI
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.8/install)"
echo "/home/runner/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
- name: Build test programs
run: cd test_programs && cargo build-sbf
- name: Run tests
run: cargo test
env:
RUST_BACKTRACE: 1
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/bin
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run cargo clippy
run: cargo clippy --all-targets -- -D warnings