Skip to content

Commit

Permalink
Merge pull request #3177 from reubenmiller/ci-format-all-files
Browse files Browse the repository at this point in the history
ci: run format checks on entire code base including Robotframework tests
  • Loading branch information
reubenmiller authored Oct 9, 2024
2 parents 6e19875 + f12d945 commit f8bda61
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 f8bda61

Please sign in to comment.