Skip to content

Commit

Permalink
run format checks on entire code base including Rust code and Robotfr…
Browse files Browse the repository at this point in the history
…amework tests

Signed-off-by: Reuben Miller <[email protected]>
  • Loading branch information
reubenmiller committed Oct 9, 2024
1 parent cfb537d commit f12d945
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,12 @@ jobs:
- name: Check Cargo.toml formatting
run: taplo fmt --check

cargo-fmt:
name: Run cargo fmt
format:
# Check formatting of both Rust and Robotframework code
name: Run format checks
runs-on: ubuntu-20.04
needs: changes
if: ${{ needs.changes.outputs.rust == 'true' || needs.changes.outputs.workflows == 'true' }}
if: ${{ github.event_name == 'pull_request' }}

steps:
- name: Checkout
Expand All @@ -146,8 +147,19 @@ jobs:
- name: Cargo fmt --version
run: cargo fmt --version

- name: Cargo fmt
run: cargo fmt -- --check
- uses: taiki-e/install-action@just
- name: Install tools
run: just install-tools

- uses: actions/setup-python@v5
with:
python-version: '3.9'
cache: 'pip'
cache-dependency-path: |
**/requirements/requirements*.txt
- name: just format-check
run: just format-check

cargo-clippy:
name: Run cargo clippy
Expand Down

0 comments on commit f12d945

Please sign in to comment.