Skip to content

feat: upgrade anchor version to 0.29.0 #362

feat: upgrade anchor version to 0.29.0

feat: upgrade anchor version to 0.29.0 #362

Workflow file for this run

name: Unit
on:
push:
branches: [master]
paths:
- .github/workflows/programs-unit.yml
- programs/**
- Cargo.toml
- Cargo.lock
pull_request:
branches: [master]
paths:
- .github/workflows/programs-unit.yml
- programs/**
- Cargo.toml
- Cargo.lock
env:
CARGO_TERM_COLOR: always
RUST_TOOLCHAIN: "1.68.0-dev"
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Run fmt
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy --all-targets -- --deny=warnings
- name: Check if publish works
run: cargo publish --no-verify --dry-run
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Run unit tests
run: cargo test
doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
override: true
profile: minimal
toolchain: ${{ env.RUST_TOOLCHAIN }}
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v1
- name: Generate docs
run: cargo doc