GitHub Actions linter for Rust formatting #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linters | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
# Only run when linted files change | |
paths: | |
- 'functional-tests/**/*.rs' | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
name: Lint Rust source files | |
runs-on: ubuntu-latest | |
steps: | |
- name: Run Formatting Check | |
run: cargo fmt --check | |
working-directory: ./functional-tests |