Skip to content

Commit

Permalink
Add working-directory into every linting step
Browse files Browse the repository at this point in the history
  • Loading branch information
rimrakhimov committed Jun 27, 2024
1 parent d70b8e0 commit 65ba126
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/r_linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
working-directory: ${{ inputs.working-directory }}
components: rustfmt, clippy

- name: Enter working directory
run: cd ${{ inputs.working-directory }}

- name: cargo fmt
run: cargo fmt --all -- --check --config imports_granularity=Crate
working-directory: ${{ inputs.working-directory }}

- name: cargo clippy
run: cargo clippy --all --all-targets --all-features -- -D warnings
working-directory: ${{ inputs.working-directory }}

- name: cargo doc
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items
working-directory: ${{ inputs.working-directory }}

0 comments on commit 65ba126

Please sign in to comment.