Skip to content

update to v0.20.0; support hyperdrive v1.0.20 #870

update to v0.20.0; support hyperdrive v1.0.20

update to v0.20.0; support hyperdrive v1.0.20 #870

Workflow file for this run

name: rust lint
on:
push:
branches:
- main
pull_request:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
# Check if files in the /test, /crates, or /lib directories or the
# /Cargo.lock, or /Cargo.toml files were changed in this PR.
detect-changes:
uses: ./.github/workflows/check_diff.yml
with:
pattern: ^test/\|^crates/\|^lib/\|^target/\|^Cargo\.lock$\|^Cargo\.toml$\|^rustfmt\.toml$\|^\.github/workflows/rust_lint\.yml$
lint:
name: rust lint
runs-on: ubuntu-latest
needs: detect-changes
if: needs.detect-changes.outputs.changed == 'true'
steps:
- name: Checkout hyperdrive-rs
uses: actions/checkout@v4
with:
submodules: recursive
token: ${{ secrets.GITHUB_TOKEN }}
# NOTE: This is needed to ensure that hyperdrive-wrappers builds correctly.
- name: Install foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-05-02
override: true
components: rustfmt, clippy
- name: lint
run: make lint