feat: upgrade anchor version to 0.29.0 #361
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: 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 |