Skip to content

Commit

Permalink
AVRO-3868: [Rust][CI] Check consistency between the doc comment in li…
Browse files Browse the repository at this point in the history
…b.rs and README.md (#2510)

* Cache cargo-rdme

* Unuse cargo-install

* Trigger GA to check effect of cache
  • Loading branch information
sarutak authored Sep 22, 2023
1 parent 109059d commit 76c2ca6
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/test-lang-rust-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,22 @@ jobs:
components: rustfmt
targets: ${{ matrix.target }}

- name: Cache cargo-rdme
if: matrix.rust == 'stable' && matrix.target == 'x86_64-unknown-linux-gnu'
uses: actions/cache@v3
with:
path: ~/.cargo-${{ matrix.rust }}/cargo-rdme
key: cargo-rdme-

# Check if the doc cumment in avro/src/lib.rs and avro/README.md are in sync.
- name: Run cargo-rdme
# The result is environment independent so one test pattern is enough.
if: matrix.rust == 'stable' && matrix.target == 'x86_64-unknown-linux-gnu'
run: |
cargo install --root ~/.cargo-${{ matrix.rust }}/cargo-rdme --locked cargo-rdme
export PATH=$PATH:~/.cargo-${{ matrix.rust }}/cargo-rdme/bin
cargo rdme --check
- name: Rust Format
if: matrix.target != 'wasm32-unknown-unknown'
run: cargo fmt --all -- --check
Expand Down

0 comments on commit 76c2ca6

Please sign in to comment.